package dune-private-libs
Private libraries of Dune
Install
Dune Dependency
Authors
Maintainers
Sources
dune-2.5.1.tbz
sha256=8f77d3a87f208e0d7cccaa1c48c4bb1bb87d62d07c3f25e9b8ba298e028ce52b
sha512=f209f12ced10c1abf8782bdb0143f4cec77795f7174d2cc75130afb1e01550b01f2f77b9e3ec4888efdad83d2f9878d179b39126f824f4e522f3ef4da34bf27e
doc/dune-private-libs.stdune/Stdune/Fdecl/index.html
Module Stdune.Fdecl
Forward declarations
create to_dyn
creates a forward declaration. The to_dyn
parameter is used for reporting errors in set
, set_idempotent
and get
.
val set : 'a t -> 'a -> unit
set t x
sets the value that will be returned by get t
to x
. Raises if set
was already called.
val set_idempotent : equal:('a -> 'a -> bool) -> 'a t -> 'a -> unit
set_idempotent ~equal t x
sets the value that will be returned by get t
to x
. Raises if set
or set_idempotent
was already called with a value that is not equal
to x
.
val get : 'a t -> 'a
get t
returns the x
if set comp x
was called. Raises if set
has not been called yet.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>