Documentation ¶
Index ¶
- Variables
- func GroupSlice[A EqOrComparable[A]](xs []A) map[A][]A
- func MapMap[A comparable, B, C any](f F1[B, C], kvs map[A]B) map[A]C
- 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 List
- type Maybe
- type Set
- type Unit
Constants ¶
This section is empty.
Variables ¶
View Source
var UnitC = &Unit{}
Functions ¶
func GroupSlice ¶ added in v0.0.2
func GroupSlice[A EqOrComparable[A]](xs []A) map[A][]A
func MapMap ¶ added in v0.0.2
func MapMap[A comparable, B, C any](f F1[B, C], kvs map[A]B) map[A]C
func ReduceMaybe ¶
Types ¶
type Either ¶ added in v0.0.2
func NewSuccess ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.