CCIntMapMap specialized for Int keys
status: stable
val empty : 'a tval is_empty : _ t -> boolIs the map empty?
val singleton : int -> 'a -> 'a tval doubleton : int -> 'a -> int -> 'a -> 'a tval mem : int -> _ t -> boolval find : int -> 'a t -> 'a optionequal ~eq a b checks whether a and b have the same set of pairs (key, value), comparing values with eq.
Total order between maps; the precise order is unspecified.
Filter-map values using the given function
val cardinal : _ t -> intNumber of bindings in the map. Linear time.
val iter : ( int -> 'a -> unit ) -> 'a t -> unitval fold : ( int -> 'a -> 'b -> 'b ) -> 'a t -> 'b -> 'bval choose : 'a t -> (int * 'a) optionval choose_exn : 'a t -> int * 'aval merge :
f:( int -> [ `Left of 'a | `Right of 'b | `Both of 'a * 'b ] -> 'c option ) ->
'a t ->
'b t ->
'c tmerge ~f m1 m2 merges m1 and m2 together, calling f once on every key that occurs in at least one of m1 and m2. if f k binding = Some c then k -> c is part of the result, else k is not part of the result.
val of_list : (int * 'a) list -> 'a tval to_list : 'a t -> (int * 'a) listval of_seq : (int * 'a) Stdlib.Seq.t -> 'a tval to_seq : 'a t -> (int * 'a) Stdlib.Seq.ttype 'a tree = unit -> [ `Nil | `Node of 'a * 'a tree list ]Helpers