package fmlib
Functional monadic library
Install
Dune Dependency
Authors
Maintainers
Sources
0.2.0.tar.gz
sha256=d47f6539af49a4c3e947dbfbe416c1e78d534897cd6d9d8e3660aae0cf8d9494
md5=d649b8a62403362bd3a24cbf1a9af590
doc/fmlib.fmlib_std/Fmlib_std/Option/index.html
Module Fmlib_std.Option
Optional elements of a certain type.
val return : 'a -> 'a t
return a
Equivalent to Some a
.
val fail : 'a t
Equivalent to None
.
Chaining of operations which return optional elements.
Example:
let* a = op1 ... in (* 'op1 ... ' returns an optional element *)
let* b = op2 ... in
let* c = op3 ... in
...
return (f a b c ...)
val to_list : 'a t -> 'a list
to_list a
Returns a one element list or an empty list.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>