package alba
Alba compiler
Install
Dune Dependency
Authors
Maintainers
Sources
0.4.1.tar.gz
sha256=439b1dce07c86e914d1ebf1712c5581418314b0c8d13594f27a698b1d25fe272
md5=5cf58d4ed4eacbe6f330e9d2378ef5c6
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
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 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)"
>