package alba
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Alba compiler
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.4.3.tar.gz
sha256=062f33c55ef39706c4290dff67d5a00bf009051fd757f9352be527f629ae21fc
md5=eb4edc4d6b7e15b83d6397bd34994153
doc/alba.fmlib/Fmlib/List/Monadic/index.html
Module List.Monadic
Monadic list functions
Parameters
module M : Module_types.MONADSignature
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