The dual of traversable functor, allows zipping a nested structure efficiently.
All instances of the distributive functor g must satisfy the following laws:
g
f
x
distribute(f)(x)
distribute(f)(map(id)(x))
g.distribute(f)(f.distribute(g)(x))
Readonly
The dual of sequenceA of traversable functor.
sequenceA
The Functor instance for F.
Functor
F
The distributed type onto G<F<_>>.
G<F<_>>
Maps the function fn onto F structure.
fn
The function to be mapped.
The mapped function.
Generated using TypeDoc
The dual of traversable functor, allows zipping a nested structure efficiently.
All instances of the distributive functor
g
must satisfy the following laws:f
and datax
;distribute(f)(x)
equals todistribute(f)(map(id)(x))
,f
and datax
;g.distribute(f)(f.distribute(g)(x))
equals tox
.