Keystroke.Tableinclude 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 = ttype key = ttype ('a, 'b) hashtbl = ('a, 'b) Core.Hashtbl.tinclude Ppx_compare_lib.Equal.S1 with type 'b t := 'b tinclude Ppx_compare_lib.Equal.S1__local with type 'b t := 'b tval sexp_of_t : ('b -> Sexplib0.Sexp.t) -> 'b t -> Sexplib0.Sexp.ttype ('a, 'b) t_ = 'b ttype 'a key_ = keyval hashable : key Base.Hashable.tinclude Base.Invariant.S1 with type 'b t := 'b tval invariant : ('a -> unit) -> 'a t -> unitinclude 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 ]) @ local) @ local)
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 ]) @ local)
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) @ local)
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_) @ local)
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_) @ local) @ local) @ local)
Core.Hashtbl_intf.create_options_without_hashableLike create_mapped. Multiple values for a key are combined rather than producing an error.
include sig ... endval t_of_sexp : (Sexplib0.Sexp.t -> 'a__001_) -> Sexplib0.Sexp.t -> 'a__001_ tinclude Core.Hashtbl_intf.Binable.S1 with type 'v t := 'v tval bin_shape_t : Bin_prot.Shape.t -> Bin_prot.Shape.tinclude sig ... endval bin_size_t : 'a. ('a, 'a t) Bin_prot.Size.sizer1val bin_write_t : 'a. ('a, 'a t) Bin_prot.Write.writer1val bin_read_t : 'a. ('a, 'a t) Bin_prot.Read.reader1val __bin_read_t__ : 'a. ('a, 'a t) Bin_prot.Read.vtag_reader1val bin_writer_t : 'a. ('a, 'a t) Bin_prot.Type_class.S1.writerval bin_reader_t : 'a. ('a, 'a t) Bin_prot.Type_class.S1.readerval bin_t : 'a. ('a, 'a t) Bin_prot.Type_class.S1.t