package extlib
A complete yet small extension for OCaml standard library
Install
dune-project
Dependency
Authors
Maintainers
Sources
extlib-1.8.0.tar.gz
md5=43fb3bf2989671af1769147b1171d080
sha512=dedd2bb4a63f2df9e451dbe6aede18d873489a8675f48ded09131f2af4d00dbeaecc8750039b2e4facb9f5f9b1b01c6b7accd392bf8ac5a3f2c801562ce5c4ee
doc/extlib/Global/index.html
Module Global
Source
Mutable global variable.
Often in OCaml you want to have a global variable, which is mutable and uninitialized when declared. You can use a 'a option ref
but this is not very convenient. The Global module provides functions to easily create and manipulate such variables.
Abstract type of a global
Raised when a global variable is accessed without first having been assigned a value. The parameter contains the name of the global.
Returns an new named empty global. The name of the global can be any string. It identifies the global and makes debugging easier.
Get the global value contents - raise Global_not_initialized if not defined.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>