package alba
Alba compiler
Install
Dune Dependency
Authors
Maintainers
Sources
0.4.1.tar.gz
sha256=439b1dce07c86e914d1ebf1712c5581418314b0c8d13594f27a698b1d25fe272
md5=5cf58d4ed4eacbe6f330e9d2378ef5c6
doc/alba.fmlib/Fmlib/List/Monadic_fold/index.html
Module List.Monadic_fold
Monadic list folding
Parameters
module M : Module_types.MONAD
Signature
fold_left f lst start
leftfolds the function f
over the list lst
starting with the value start
. Continuation of the fold is determined by the bind operator >>=
of the monad M
. E.g. if the monad M
is Option
the folding stops as soon as f e acc
returns the value None
.
fold_left f [a b c ...] s =
M.(f a s >>= fun acc ->
f b acc >>= fun acc ->
f c acc >>= fun acc ->
...)
The same as fold_left
just right folding.
fold_right f [... x y z] s =
fold_left f (rev [... x y z]) s =
M.(f z s >>= fun acc ->
f y acc >>= fun acc ->
f x acc >>= fun acc ->
...)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page