package alba
Alba compiler
Install
Dune Dependency
Authors
Maintainers
Sources
0.4.1.tar.gz
sha256=439b1dce07c86e914d1ebf1712c5581418314b0c8d13594f27a698b1d25fe272
md5=5cf58d4ed4eacbe6f330e9d2378ef5c6
doc/alba.fmlib/Fmlib/Monad/Result/index.html
Module Monad.Result
Result monad
Parameters
module Error : Module_types.ANY
Signature
include Module_types.MONAD with type 'a t = ('a, Error.t) result
val return : 'a -> 'a t
return a
makes a monadic container containing the value a
.
m >>= f
extracts the value a
from the monadic container m
and returns f a
.
f >=> g
composition of the two monadic functions f
and g
.
f >=> g
is equivalent to fun a -> f a >>= g
.
map f m
maps the values in the monadic container m
with the function f
.
type error = Error.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page