Bigint.TableSourceinclude Core.Hashtbl_intf.S
with type ('a, 'b) hashtbl = ('a, 'b) Core.Hashtbl.t
with type key = tinclude Core.Hashtbl_intf.S_plain
with type ('a, 'b) hashtbl = ('a, 'b) Core.Hashtbl.t
with type key = tinclude Ppx_compare_lib.Equal.S1__local with type 'b t := 'b tinclude Base.Invariant.S1 with type 'b t := 'b tinclude Core.Hashtbl_intf.Creators
with type ('a, 'b) t := ('a, 'b) t_
with type 'a key := 'a key_
with type ('key, 'data, 'z) create_options :=
('key, 'data, 'z) Core.Hashtbl_intf.create_options_without_hashableval create :
('key key_, 'data, unit -> ('key, 'data) t_)
Core.Hashtbl_intf.create_options_without_hashableCreates a new empty dictionary.
val of_alist :
('key key_,
'data,
('key key_ * 'data) list ->
[ `Ok of ('key, 'data) t_ | `Duplicate_key of 'key key_ ])
Core.Hashtbl_intf.create_options_without_hashableDictionary containing the given key/value pairs. Fails if there are duplicate keys.
val of_alist_report_all_dups :
('key key_,
'data,
('key key_ * 'data) list ->
[ `Ok of ('key, 'data) t_ | `Duplicate_keys of 'key key_ list ])
Core.Hashtbl_intf.create_options_without_hashableLike of_alist. On failure, provides all duplicate keys instead of a single representative.
val of_alist_or_error :
('key key_,
'data,
('key key_ * 'data) list ->
('key, 'data) t_ Base.Or_error.t)
Core.Hashtbl_intf.create_options_without_hashableLike of_alist. Returns a Result.t.
val of_alist_exn :
('key key_, 'data, ('key key_ * 'data) list -> ('key, 'data) t_)
Core.Hashtbl_intf.create_options_without_hashableLike of_alist. Raises on duplicates.
val of_alist_multi :
('key key_, 'data list, ('key key_ * 'data) list -> ('key, 'data list) t_)
Core.Hashtbl_intf.create_options_without_hashableProduces a dictionary mapping each key to a list of associated values.
val create_mapped :
('key key_,
'data,
get_key:('a -> 'key key_) @ local ->
get_data:('a -> 'data) @ local ->
'a list ->
[ `Ok of ('key, 'data) t_ | `Duplicate_keys of 'key key_ list ])
Core.Hashtbl_intf.create_options_without_hashableLike of_alist. Consume a list of elements for which key/value pairs can be computed.
val create_with_key :
('key key_,
'data,
get_key:('data -> 'key key_) @ local ->
'data list ->
[ `Ok of ('key, 'data) t_ | `Duplicate_keys of 'key key_ list ])
Core.Hashtbl_intf.create_options_without_hashableLike of_alist. Consume values for which keys can be computed.
val create_with_key_or_error :
('key key_,
'data,
get_key:('data -> 'key key_) @ local ->
'data list ->
('key, 'data) t_ Base.Or_error.t)
Core.Hashtbl_intf.create_options_without_hashableLike of_alist_or_error. Consume values for which keys can be computed.
val create_with_key_exn :
('key key_,
'data,
get_key:('data -> 'key key_) @ local ->
'data list ->
('key, 'data) t_)
Core.Hashtbl_intf.create_options_without_hashableLike of_alist_exn. Consume values for which keys can be computed.
val group :
('key key_,
'data,
get_key:('a -> 'key key_) @ local ->
get_data:('a -> 'data) @ local ->
combine:('data -> ('data -> 'data) @ local) @ local ->
'a list ->
('key, 'data) t_)
Core.Hashtbl_intf.create_options_without_hashableLike create_mapped. Multiple values for a key are combined rather than producing an error.
include sig ... end