package extlib
A complete yet small extension for OCaml standard library (reduced, recommended)
Install
Dune Dependency
Authors
Maintainers
Sources
extlib-1.7.6.tar.gz
sha256=bf05e578ad16b1dd6c8b301e8c31805e9d9075e324882357bbaa481f3610da71
md5=b976093ef23b7d60fc1c8f0380c4f76a
doc/extlib/Option/index.html
Module Option
Functions for the option type.
Options are an Ocaml standard type that can be either None
(undefined) or Some x
where x can be any value. Options are widely used in Ocaml to represent undefined values (a little like NULL in C, but in a type and memory safe way). This module adds some functions for working with options.
map f (Some x)
returns Some (f x)
and map None
returns None
.
map_default f x (Some v)
returns f v
and map_default f x None
returns x
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>