package alba
Alba compiler
Install
Dune Dependency
Authors
Maintainers
Sources
0.4.3.tar.gz
sha256=062f33c55ef39706c4290dff67d5a00bf009051fd757f9352be527f629ae21fc
md5=eb4edc4d6b7e15b83d6397bd34994153
doc/src/alba.fmlib/finite_map.ml.html
Source file finite_map.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 30 31 32
open Module_types module type S = sig type key type +'a t val empty: 'a t val is_empty: 'a t -> bool val mem: key -> 'a t -> bool val maybe_find: key -> 'a t -> 'a option val find: key -> 'a t -> 'a val add: key -> 'a -> 'a t -> 'a t val remove: key -> 'a t -> 'a t val fold: (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b val bindings: 'a t -> (key * 'a) list val cardinal: 'a t -> int end module Make (E:SORTABLE): S with type key = E.t = struct include Map.Make (E) let maybe_find (k:key) (m:'a t): 'a option = try Some (find k m) with Not_found -> None let find (k:key) (m:'a t): 'a = try find k m with Not_found -> assert false end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>