Make.Lift
Lifts functions into the monad.
A function that operates on values can be mapped to a function that operates on computations. We provide several liftes for common arities.
val nullary : 'a -> 'a T1(M).t
nullary x lifts x (a synonym to return)
nullary x
x
return
val unary : ('a -> 'b) -> 'a T1(M).t -> 'b T1(M).t
unary f lifts f
unary f
f
val binary : ('a -> 'b -> 'c) -> 'a T1(M).t -> 'b T1(M).t -> 'c T1(M).t
binary f lifts f
binary f
val ternary : ('a -> 'b -> 'c -> 'd) -> 'a T1(M).t -> 'b T1(M).t -> 'c T1(M).t -> 'd T1(M).t
ternary f lifts f
ternary f
val quaternary : ('a -> 'b -> 'c -> 'd -> 'e) -> 'a T1(M).t -> 'b T1(M).t -> 'c T1(M).t -> 'd T1(M).t -> 'e T1(M).t
quaternary f lifts f
quaternary f
val quinary : ('a -> 'b -> 'c -> 'd -> 'e -> 'f) -> 'a T1(M).t -> 'b T1(M).t -> 'c T1(M).t -> 'd T1(M).t -> 'e T1(M).t -> 'f T1(M).t
quinary f lifts f
quinary f