Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asteris-llc/gofpher
/ functions
Functions
70 in github.com/asteris-llc/gofpher
⨍
Functions
70
◇
Types & classes
15
↓ 10 callers
Function
Mzero
Mzero returnes an empty list
list/list.go:23
↓ 6 callers
Function
IsEmpty
IsEmpty returns true if the list is empty
list/list.go:81
↓ 5 callers
Method
AndThen
(AndThenFunc)
either/either.go:36
↓ 4 callers
Method
AndThen
(func(interface{}) Monad)
monad/monad.go:22
↓ 4 callers
Function
Cons
Cons pushes an element onto the fron of the list
list/list.go:33
↓ 3 callers
Function
Consf
Consf pushes an element-generating function onto the list
list/list.go:38
↓ 3 callers
Function
Foldl
Foldl performs a left fold over the list
list/list.go:128
↓ 3 callers
Function
HdTail
HdTail returns (Head l, Tail l)
list/list.go:76
↓ 3 callers
Function
Head
Head returns the value from the front of the list
list/list.go:51
↓ 3 callers
Function
Reverse
Reverse returns the list revsersed
list/list.go:167
↓ 3 callers
Function
Tail
Tail returns the list without the front element
list/list.go:63
↓ 2 callers
Method
FromJust
FromJust gets the just value and panics if it's nothing
maybe/maybe.go:75
↓ 2 callers
Method
IsJust
IsJust returns true if the value is a just value
maybe/maybe.go:69
↓ 2 callers
Function
LeftM
LeftM generates a left instance of EitherM
either/either.go:124
↓ 2 callers
Function
Right
Right creates a new right type value
either/either.go:149
↓ 2 callers
Function
badTypeError
(expected string, actual interface{})
pipeline/pipeline.go:74
↓ 2 callers
Function
show
(a, b either.EitherM)
either/either_test.go:39
↓ 2 callers
Function
toNum
(i interface{})
either/either_test.go:24
↓ 1 callers
Function
Foldr
Foldr performs a right fold over the list
list/list.go:137
↓ 1 callers
Method
FromEither
FromEither returns the value and true if it was a right-hand value
either/either.go:110
↓ 1 callers
Method
FromLeft
FromLeft gets the left-hand value
either/either.go:88
↓ 1 callers
Method
FromRight
FromRight gets the right-hand value
either/either.go:93
↓ 1 callers
Method
IsRight
IsRight returns true if the value is Right
either/either.go:98
↓ 1 callers
Function
Left
Left creates a new left type value
either/either.go:144
↓ 1 callers
Function
Map
Map returns a list with f (lazily) applied to each element
list/list.go:97
↓ 1 callers
Method
Return
Return creates a Right value
either/either.go:83
↓ 1 callers
Method
Return
(i interface{})
monad/monad.go:24
↓ 1 callers
Function
Returnf
Returnf creates a list with a single element-generating function
list/list.go:46
↓ 1 callers
Function
Seq
Seq evaluates each function in the list
list/list.go:120
Method
AndThen
AndThen wraps the underlying Either's AndThen
either/either.go:50
Method
AndThen
AndThen on LeftType returns the type without function application
either/either.go:134
Method
AndThen
AndThen on the RightType returns the result of function application
either/either.go:139
Method
AndThen
AndThen provides the monadic implementation of AndThen
maybe/maybe.go:37
Method
AndThen
AndThen pushes a function onto the pipeline call stack
pipeline/pipeline.go:36
Function
Append
Append adds an element to the end of the list
list/list.go:175
Function
Concat
Concat joins two lists
list/list.go:180
Method
Connect
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
Function
Example_chainAndThen
()
either/either_test.go:73
Function
Example_either
()
either/either_test.go:59
Function
Example_eitherFMap
()
either/either_test.go:84
Function
Example_join
()
either/either_test.go:44
Method
Exec
Exec executes the pipeline
pipeline/pipeline.go:59
Function
FMap
FMap applies a function inside of a monadic value
monad/monad.go:34
Function
Foldl1
Foldl1 performs a left fold over the list using it's head as the initial element
list/list.go:147
Function
FromLeft
FromLeft attempts to coerce the either into a left type value
either/either.go:154
Method
FromMaybe
FromMaybe gets the just value or returns the default
maybe/maybe.go:80
Function
FromRight
FromRight attempts to coerce the either into a right type value
either/either.go:162
Function
Index
Index gets the specified element from the list (0-indexed)
list/list.go:153
Method
IsLeft
IsLeft returns true if the value is Left
either/either.go:104
Function
Join
Join takes a Monad (Monad (interface{})) and returns Monad (interface{})
monad/monad.go:42
Function
Just
Just creates a just value
maybe/maybe.go:64
Function
Kleisli
Kleisli composition for monadic functions
monad/monad.go:47
Method
LogAndThen
LogAndThen wraps the underlying Either's AndThen and provides logging
either/either.go:61
Method
LogAndThen
LogAndThen provides the monadic implementation of LogAndThen
maybe/maybe.go:45
Method
LogAndThen
(func(interface{}) Monad, func(interface{}))
monad/monad.go:23
Method
LogAndThen
LogAndThen pushes a function onto the pipeline call stack
pipeline/pipeline.go:42
Method
MZero
()
monad/monad.go:30
Function
MapM
MapM applies f to each element then evaluates each function in sequence
list/list.go:111
Function
New
New generates a List from any number of elements
list/list.go:188
Function
NewPipeline
NewPipeline creats a new Pipeline with an empty call stack
pipeline/pipeline.go:31
Function
Nothing
Nothing creates a Nothing value
maybe/maybe.go:59
Function
Return
Return returns a single-element list
list/list.go:28
Method
Return
Return provides the monadic implementation of Return
maybe/maybe.go:54
Function
ReturnM
ReturnM returns and EitherM
either/either.go:118
Function
RightM
RightM generates a left instance of EitherM
either/either.go:129
Method
String
Show shows the string
either/either.go:73
Method
String
()
maybe/maybe.go:87
Function
ToSlice
ToSlice returns a slice of evaluated values from the list
list/list.go:197
Function
Unit
Unit returns a basic unit
coretypes/unit.go:7
Function
addOne
(src interface{})
either/either_test.go:31