Module Code_id_or_symbol.Lmap
val empty : 'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tval is_empty : 'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t -> boolval add :
Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key ->
'a ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tThe key should not already exist in the map; this is not checked.
val singleton :
Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key ->
'a ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tval disjoint_union :
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tUnlike disjoint_union on maps, the disjointness is not checked.
val disjoint_union_many :
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t list ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tThe given maps must be pairwise disjoint, which is not checked.
val iter :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key -> 'a -> unit) ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
unitval fold :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key -> 'a -> 'b -> 'b) ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'b ->
'bval fold_left_map :
('a ->
Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key ->
'b ->
'a * 'c) ->
'a ->
'b Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'a * 'c Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tSimultaneously map over the elements and accumulate a value. The arguments are ordered so as to make the order preservation as explicit as possible (the accumulator is produced from the values _before_ the key and value being passed).
val filter :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key -> 'a -> bool) ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tval data : 'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t -> 'a listval bindings :
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key * 'a) listval of_list :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key * 'a) list ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tKeys in the list must be distinct, which is not checked.
val find_opt :
Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'a optionval get_singleton :
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key * 'a) optionval get_singleton_exn :
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key * 'aval map :
('a -> 'b) ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'b Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tval map_sharing :
('a -> 'a) ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tval filter_map :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key -> 'a -> 'b option) ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'b Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tval for_all_with_fixed_arg :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key -> 'a -> 'b -> bool) ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'b ->
boolval exists :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key -> 'a -> bool) ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
boolval choose :
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key * 'aReturns an unspecified binding from the map
val add_seq :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key * 'a) Stdlib.Seq.t ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tKeys in the sequence must be distinct from each other and from keys already in the map; neither of these conditions is checked.
val of_seq :
(Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.key * 'a) Stdlib.Seq.t ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.tKeys in the sequence must be distinct, which is not checked.
val print :
(Stdlib.Format.formatter -> 'a -> unit) ->
Stdlib.Format.formatter ->
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
unitval invariant :
'a Flambda2_identifiers.Int_ids.Code_id_or_symbol.Lmap.t ->
unitCheck that there are no duplicates in the list, calling Misc.fatal_errorf if a duplicate is found.