CCIntMapSourcestatus: stable
equal ~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 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.
Helpers