package grenier
A collection of various algorithms in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
grenier-v0.11.tbz
sha256=658e1ad6fc5fdce0871975b3ebcb3ec760248be63cdb9ea965e3121cc7478d77
sha512=d9ff83f1b025f34c22af5921444993df219761dcee8d8cb5a940f266df8677278967434b22314c5c82d5d983e4c94c04cd52c4717d5c1f22fbd3a022631fae1c
doc/src/grenier.physh/physh.ml.html
Source file physh.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
let null = ref () module Set = struct type 'a t external phys_set_alloc : 'a array -> unit ref -> 'a t = "ml_phys_set_alloc" external phys_set_add : 'a t -> 'a -> unit ref-> unit = "ml_phys_set_add" external phys_set_mem : 'a t -> 'a -> unit ref-> bool = "ml_phys_set_mem" external phys_set_length : 'a t -> int = "ml_phys_set_length" let create () = phys_set_alloc [||] null let length = phys_set_length let add t x = phys_set_add t x null let mem t x = phys_set_mem t x null end module Map = struct type ('a,'b) t external phys_map_alloc : 'a array -> unit ref -> ('a, 'b) t = "ml_phys_map_alloc" external phys_map_add : ('a, 'b) t -> 'a -> 'b -> unit ref -> unit = "ml_phys_map_add" external phys_map_find : ('a, 'b) t -> 'a -> unit ref -> 'b = "ml_phys_map_find" external phys_map_length : ('a, 'b) t -> int = "ml_phys_map_length" let create () = phys_map_alloc [||] null let length = phys_map_length let add t k v = phys_map_add t k v null let find t k = phys_map_find t k null end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>