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 dual of traversable functor, allows zipping a nested structure efficiently.
All instances of the distributive functor
gmust satisfy the following laws:fand datax;distribute(f)(x)equals todistribute(f)(map(id)(x)),fand datax;g.distribute(f)(f.distribute(g)(x))equals tox.