Module Hashtbl.Using_hashableSource
include Core.Hashtbl_intf.Creators
with type ('a, 'b) t := ('a, 'b) Core.Hashtbl.t
with type 'a key := 'a Core.Hashtbl.key
with type ('a, 'b, 'z) create_options :=
('a, 'b, 'z) Core.Hashtbl_intf.create_options_with_hashable
include Base.Dictionary_mutable.Creators
with type 'key key := 'key Core.Hashtbl.key
and type ('key, 'data, _) t := ('key, 'data) Core.Hashtbl.t
and type ('fn, 'key, 'data, _) creator :=
('key Core.Hashtbl.key, 'data, 'fn)
Core.Hashtbl_intf.create_options_with_hashable
Source
val create :
('a Core.Hashtbl.key, 'b, unit -> ('a, 'b) Core.Hashtbl.t)
Core.Hashtbl_intf.create_options_with_hashableSource
val of_alist :
('a Core.Hashtbl.key,
'b,
('a Core.Hashtbl.key * 'b) list ->
[ `Ok of ('a, 'b) Core.Hashtbl.t | `Duplicate_key of 'a Core.Hashtbl.key ])
Core.Hashtbl_intf.create_options_with_hashableSource
val of_alist_report_all_dups :
('a Core.Hashtbl.key,
'b,
('a Core.Hashtbl.key * 'b) list ->
[ `Ok of ('a, 'b) Core.Hashtbl.t
| `Duplicate_keys of 'a Core.Hashtbl.key list ])
Core.Hashtbl_intf.create_options_with_hashableSource
val of_alist_or_error :
('a Core.Hashtbl.key,
'b,
('a Core.Hashtbl.key * 'b) list ->
('a, 'b) Core.Hashtbl.t Base.Or_error.t)
Core.Hashtbl_intf.create_options_with_hashableSource
val of_alist_exn :
('a Core.Hashtbl.key,
'b,
('a Core.Hashtbl.key * 'b) list ->
('a, 'b) Core.Hashtbl.t)
Core.Hashtbl_intf.create_options_with_hashableSource
val of_alist_multi :
('a Core.Hashtbl.key,
'b list,
('a Core.Hashtbl.key * 'b) list ->
('a, 'b list) Core.Hashtbl.t)
Core.Hashtbl_intf.create_options_with_hashableSource
val create_mapped :
('a Core.Hashtbl.key,
'b,
get_key:('r -> 'a Core.Hashtbl.key) ->
get_data:('r -> 'b) ->
'r list ->
[ `Ok of ('a, 'b) Core.Hashtbl.t
| `Duplicate_keys of 'a Core.Hashtbl.key list ])
Core.Hashtbl_intf.create_options_with_hashable create_mapped get_key get_data [x1,...,xn]
= of_alist [get_key x1, get_data x1; ...; get_key xn, get_data xn] Source
val create_with_key :
('a Core.Hashtbl.key,
'r,
get_key:('r -> 'a Core.Hashtbl.key) ->
'r list ->
[ `Ok of ('a, 'r) Core.Hashtbl.t
| `Duplicate_keys of 'a Core.Hashtbl.key list ])
Core.Hashtbl_intf.create_options_with_hashable create_with_key ~get_key [x1,...,xn]
= of_alist [get_key x1, x1; ...; get_key xn, xn] Source
val create_with_key_or_error :
('a Core.Hashtbl.key,
'r,
get_key:('r -> 'a Core.Hashtbl.key) ->
'r list ->
('a, 'r) Core.Hashtbl.t Base.Or_error.t)
Core.Hashtbl_intf.create_options_with_hashableSource
val create_with_key_exn :
('a Core.Hashtbl.key,
'r,
get_key:('r -> 'a Core.Hashtbl.key) ->
'r list ->
('a, 'r) Core.Hashtbl.t)
Core.Hashtbl_intf.create_options_with_hashableSource
val group :
('a Core.Hashtbl.key,
'b,
get_key:('r -> 'a Core.Hashtbl.key) ->
get_data:('r -> 'b) ->
combine:('b -> 'b -> 'b) ->
'r list ->
('a, 'b) Core.Hashtbl.t)
Core.Hashtbl_intf.create_options_with_hashable