package alba
Alba compiler
Install
Dune Dependency
Authors
Maintainers
Sources
0.4.4.tar.gz
sha256=4817038301d3e45bac9edf7e6f2fc8bf0a6d78e76e02ad7ea33ef69bcc17df3b
md5=25234357587126685d64f16236167937
doc/alba.fmlib/Fmlib/Option/index.html
Module Fmlib.Option
Option Monad
Optional values
include Module_types.MONAD with type 'a t = 'a option
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
.
val to_list : 'a t -> 'a list
val use : 'a t -> 'b -> ('a -> 'b) -> 'b
val fold : 'z -> ('a -> 'z) -> 'a t -> 'z
val has : 'a t -> bool
val value : 'a t -> 'a
val of_bool : bool -> unit t
val iter : ('a -> unit) -> 'a t -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>