MCPcopy Create free account

hub / github.com/asteris-llc/gofpher / functions

Functions70 in github.com/asteris-llc/gofpher

↓ 10 callersFunctionMzero
Mzero returnes an empty list
list/list.go:23
↓ 6 callersFunctionIsEmpty
IsEmpty returns true if the list is empty
list/list.go:81
↓ 5 callersMethodAndThen
(AndThenFunc)
either/either.go:36
↓ 4 callersMethodAndThen
(func(interface{}) Monad)
monad/monad.go:22
↓ 4 callersFunctionCons
Cons pushes an element onto the fron of the list
list/list.go:33
↓ 3 callersFunctionConsf
Consf pushes an element-generating function onto the list
list/list.go:38
↓ 3 callersFunctionFoldl
Foldl performs a left fold over the list
list/list.go:128
↓ 3 callersFunctionHdTail
HdTail returns (Head l, Tail l)
list/list.go:76
↓ 3 callersFunctionHead
Head returns the value from the front of the list
list/list.go:51
↓ 3 callersFunctionReverse
Reverse returns the list revsersed
list/list.go:167
↓ 3 callersFunctionTail
Tail returns the list without the front element
list/list.go:63
↓ 2 callersMethodFromJust
FromJust gets the just value and panics if it's nothing
maybe/maybe.go:75
↓ 2 callersMethodIsJust
IsJust returns true if the value is a just value
maybe/maybe.go:69
↓ 2 callersFunctionLeftM
LeftM generates a left instance of EitherM
either/either.go:124
↓ 2 callersFunctionRight
Right creates a new right type value
either/either.go:149
↓ 2 callersFunctionbadTypeError
(expected string, actual interface{})
pipeline/pipeline.go:74
↓ 2 callersFunctionshow
(a, b either.EitherM)
either/either_test.go:39
↓ 2 callersFunctiontoNum
(i interface{})
either/either_test.go:24
↓ 1 callersFunctionFoldr
Foldr performs a right fold over the list
list/list.go:137
↓ 1 callersMethodFromEither
FromEither returns the value and true if it was a right-hand value
either/either.go:110
↓ 1 callersMethodFromLeft
FromLeft gets the left-hand value
either/either.go:88
↓ 1 callersMethodFromRight
FromRight gets the right-hand value
either/either.go:93
↓ 1 callersMethodIsRight
IsRight returns true if the value is Right
either/either.go:98
↓ 1 callersFunctionLeft
Left creates a new left type value
either/either.go:144
↓ 1 callersFunctionMap
Map returns a list with f (lazily) applied to each element
list/list.go:97
↓ 1 callersMethodReturn
Return creates a Right value
either/either.go:83
↓ 1 callersMethodReturn
(i interface{})
monad/monad.go:24
↓ 1 callersFunctionReturnf
Returnf creates a list with a single element-generating function
list/list.go:46
↓ 1 callersFunctionSeq
Seq evaluates each function in the list
list/list.go:120
MethodAndThen
AndThen wraps the underlying Either's AndThen
either/either.go:50
MethodAndThen
AndThen on LeftType returns the type without function application
either/either.go:134
MethodAndThen
AndThen on the RightType returns the result of function application
either/either.go:139
MethodAndThen
AndThen provides the monadic implementation of AndThen
maybe/maybe.go:37
MethodAndThen
AndThen pushes a function onto the pipeline call stack
pipeline/pipeline.go:36
FunctionAppend
Append adds an element to the end of the list
list/list.go:175
FunctionConcat
Concat joins two lists
list/list.go:180
MethodConnect
Connect adds a pipeline to the end of the current pipeline. E.g. {a,b,c}.Connect({d,e,f}) = {a,b,c,d,e.f}
pipeline/pipeline.go:53
FunctionExample_chainAndThen
()
either/either_test.go:73
FunctionExample_either
()
either/either_test.go:59
FunctionExample_eitherFMap
()
either/either_test.go:84
FunctionExample_join
()
either/either_test.go:44
MethodExec
Exec executes the pipeline
pipeline/pipeline.go:59
FunctionFMap
FMap applies a function inside of a monadic value
monad/monad.go:34
FunctionFoldl1
Foldl1 performs a left fold over the list using it's head as the initial element
list/list.go:147
FunctionFromLeft
FromLeft attempts to coerce the either into a left type value
either/either.go:154
MethodFromMaybe
FromMaybe gets the just value or returns the default
maybe/maybe.go:80
FunctionFromRight
FromRight attempts to coerce the either into a right type value
either/either.go:162
FunctionIndex
Index gets the specified element from the list (0-indexed)
list/list.go:153
MethodIsLeft
IsLeft returns true if the value is Left
either/either.go:104
FunctionJoin
Join takes a Monad (Monad (interface{})) and returns Monad (interface{})
monad/monad.go:42
FunctionJust
Just creates a just value
maybe/maybe.go:64
FunctionKleisli
Kleisli composition for monadic functions
monad/monad.go:47
MethodLogAndThen
LogAndThen wraps the underlying Either's AndThen and provides logging
either/either.go:61
MethodLogAndThen
LogAndThen provides the monadic implementation of LogAndThen
maybe/maybe.go:45
MethodLogAndThen
(func(interface{}) Monad, func(interface{}))
monad/monad.go:23
MethodLogAndThen
LogAndThen pushes a function onto the pipeline call stack
pipeline/pipeline.go:42
MethodMZero
()
monad/monad.go:30
FunctionMapM
MapM applies f to each element then evaluates each function in sequence
list/list.go:111
FunctionNew
New generates a List from any number of elements
list/list.go:188
FunctionNewPipeline
NewPipeline creats a new Pipeline with an empty call stack
pipeline/pipeline.go:31
FunctionNothing
Nothing creates a Nothing value
maybe/maybe.go:59
FunctionReturn
Return returns a single-element list
list/list.go:28
MethodReturn
Return provides the monadic implementation of Return
maybe/maybe.go:54
FunctionReturnM
ReturnM returns and EitherM
either/either.go:118
FunctionRightM
RightM generates a left instance of EitherM
either/either.go:129
MethodString
Show shows the string
either/either.go:73
MethodString
()
maybe/maybe.go:87
FunctionToSlice
ToSlice returns a slice of evaluated values from the list
list/list.go:197
FunctionUnit
Unit returns a basic unit
coretypes/unit.go:7
FunctionaddOne
(src interface{})
either/either_test.go:31