Documentation ¶
Index ¶
- Variables
- func ReduceMaybe[A, B any](m *Maybe[A], b B, f F2[B, A, B]) B
- type Either
- func App2[E, A, B, C any](f func(A, B) C, m1 *Either[E, A], m2 *Either[E, B]) *Either[E, C]
- func Bind[E, A, B any](m *Either[E, A], f func(A) *Either[E, B]) *Either[E, B]
- func Fmap[E, A, B any](m *Either[E, A], f func(a A) B) *Either[E, B]
- func MapError[E1, E2, A any](m *Either[E1, A], f func(E1) E2) *Either[E2, A]
- func NewError[E any, A any](error E) *Either[E, A]
- func NewSuccess[E any, A any](value A) *Either[E, A]
- type Maybe
- type Set
- type Unit
Constants ¶
This section is empty.
Variables ¶
View Source
var UnitC = &Unit{}
Functions ¶
func ReduceMaybe ¶
Types ¶
type Either ¶ added in v0.0.2
func NewSuccess ¶ added in v0.0.2
type Set ¶ added in v0.0.2
type Set[A any, K comparable] struct { Elems map[K]A Projection func(A) K }
func NewSet ¶ added in v0.0.2
func NewSet[A comparable](elems []A) *Set[A, A]
func NewSetBy ¶ added in v0.1.2
func NewSetBy[A any, K comparable](projection func(A) K, elems []A) *Set[A, K]
Click to show internal directories.
Click to hide internal directories.