Readonly
applyReadonly
distributeReadonly
foldRFolds the data structure with folder
function by right associativity.
The function which takes the next and accumulating value and returns the calculated accumulation.
The accumulated result value.
Readonly
mapReadonly
pureReadonly
traverseMaps each item of the structure data
to an action, and evaluates them from left to right, then collects the result.
The instance of Applicative
for F
.
The collected result of actions.
Readonly
untaintedGenerated using TypeDoc
A functor with application. It can combine sequence computations with
apply
orliftA2
function.All instances of the applicative
a
must satisfy the following laws:x
;a.apply(a.pure((i) => i))(x)
equals tox
,x
,y
andz
;a.apply(a.apply(a.apply(a.pure((f) => (g) => (i) => f(g(i))))(x))(y))(z)
equals toa.apply(x)(a.apply(y)(z))
,f
andx
;a.apply(a.pure(f))(a.pure(x))
equals toa.pure(f(x))
,f
andx
;a.apply(f)(a.pure(x))
equals toa.apply(a.pure((i) => i(x)))(f)
.