package core
Industrial strength alternative to OCaml's standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.1.tar.gz
md5=743a141234e04210e295980f7a78a6d9
sha512=61b415f4fb12c78d30649fff1aabe3a475eea926ce6edb7774031f4dc7f37ea51f5d9337ead6ec73cd93da5fd1ed0f2738c210c71ebc8fe9d7f6135a06bd176f
doc/core/Core/Set_once/index.html
Module Core.Set_once
Source
A 'a Set_once.t
is like an 'a option ref
that can only be set once. A Set_once.t
starts out as None
, the first set
transitions it to Some
, and subsequent set
s fail.
Equality is determined only by the internal value and not the source code position of where the value was set.
Passes when unset.
include Base.Invariant.S1 with type 'a t := 'a t
set_if_none t here a
will do nothing if is_some t
, otherwise it will set_exn t here a
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>