Documentation
¶
Index ¶
- func Bind[B1, E, F any](f func(B1, E) F, b1 B1) func(E) F
- func BindFunc[B1, E, F any](f func(B1, E) F, supplier func() B1) func(E) F
- func Chain[V any](fs ...func(V) V) func(V) V
- func Chain2[K, V any](fs ...func(K, V) (K, V)) func(K, V) (K, V)
- func ChainSeq[V any](fs iter.Seq[func(V) V]) func(V) V
- func ChainSeq2[K, V any](fs iter.Seq[func(K, V) (K, V)]) func(K, V) (K, V)
- func Compose[In, Mid, Out any](f1 func(In) Mid, f2 func(Mid) Out) func(In) Out
- func Compose2[In1, In2, Mid1, Mid2, Out1, Out2 any](f1 func(In1, In2) (Mid1, Mid2), f2 func(Mid1, Mid2) (Out1, Out2)) func(In1, In2) (Out1, Out2)
- func ComposeErr[In, Mid, Out any](f1 func(In) (Mid, error), f2 func(Mid) (Out, error)) func(In) (Out, error)
- func Const[F, E any](e E) func(F) E
- func DropKey[E, K, V any](f func(E) (K, V)) func(E) V
- func DropValue[E, K, V any](f func(E) (K, V)) func(E) K
- func Flip[In1, In2, Out any](f func(In1, In2) Out) func(In2, In1) Out
- func Identity[V any](v V) V
- func LiftKeyConst[In, Out1, Out2 any](f func(In) Out2, out1 Out1) func(In) (Out1, Out2)
- func LiftKeyZero[Out1, In, Out2 any](f func(In) Out2) func(In) (Out1, Out2)
- func LiftSuccess[In, Out any](f func(In) Out) func(In) (Out, error)
- func LiftValueConst[In, Out1, Out2 any](f func(In) Out1, out2 Out2) func(In) (Out1, Out2)
- func LiftValueZero[Out2, In, Out1 any](f func(In) Out1) func(In) (Out1, Out2)
- func Merge[In, Out1, Out2 any](f1 func(In) Out1, f2 func(In) Out2) func(In) (Out1, Out2)
- func Narrow[In, Out any](f func(any) Out) func(In) Out
- func Narrow0[In any](f func(any)) func(In)
- func Narrow2[In, Out1, Out2 any](f func(any) (Out1, Out2)) func(In) (Out1, Out2)
- func Split[In, Out1, Out2 any](f func(In) (Out1, Out2)) (func(In) Out1, func(In) Out2)
- func Uncurried[In, Mid, Out any](f func(In) func(Mid) Out) func(In, Mid) Out
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compose2 ¶
func Compose2[In1, In2, Mid1, Mid2, Out1, Out2 any](f1 func(In1, In2) (Mid1, Mid2), f2 func(Mid1, Mid2) (Out1, Out2)) func(In1, In2) (Out1, Out2)
func ComposeErr ¶
func LiftKeyConst ¶
func LiftKeyConst[In, Out1, Out2 any](f func(In) Out2, out1 Out1) func(In) (Out1, Out2)
func LiftKeyZero ¶
func LiftKeyZero[Out1, In, Out2 any](f func(In) Out2) func(In) (Out1, Out2)
func LiftSuccess ¶
func LiftValueConst ¶
func LiftValueConst[In, Out1, Out2 any](f func(In) Out1, out2 Out2) func(In) (Out1, Out2)
func LiftValueZero ¶
func LiftValueZero[Out2, In, Out1 any](f func(In) Out1) func(In) (Out1, Out2)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.