package containers
package containers
-
containers
-
containers_bencode
-
containers_cbor
-
containers_codegen
-
containers_monomorphic
-
containers_top
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Helpers for references
- since 0.9
type 'a printer = Format.formatter -> 'a -> unit
type 'a t = 'a ref
val iter : ('a -> unit) -> 'a t -> unit
Call the function on the content of the reference.
val update : ('a -> 'a) -> 'a t -> unit
Update the reference's content with the given function.
val incr_then_get : int t -> int
incr_then_get r
increments r
and returns its new value, think ++r
.
- since 0.17
val get_then_incr : int t -> int
get_then_incr r
increments r
and returns its old value, think r++
.
- since 0.17
val protect : 'a t -> 'a -> (unit -> 'b) -> 'b
protect r x f
sets r := x
; calls f()
; restores r
to its old value; and returns the result of f()
.
- since 3.10
val to_list : 'a t -> 'a list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>