mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
CCHashtbl(cleanup): remove function always present on 4.08
This commit is contained in:
parent
1de3036e0c
commit
13252a9513
2 changed files with 0 additions and 23 deletions
|
|
@ -189,11 +189,6 @@ module type S = sig
|
||||||
using [f] in an unspecified order.
|
using [f] in an unspecified order.
|
||||||
@since 3.3 *)
|
@since 3.3 *)
|
||||||
|
|
||||||
val add_seq : 'a t -> (key * 'a) Seq.t -> unit
|
|
||||||
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
|
|
||||||
Renamed from [add_std_seq] since 3.0.
|
|
||||||
@since 3.0 *)
|
|
||||||
|
|
||||||
val add_seq_with :
|
val add_seq_with :
|
||||||
f:(key -> 'a -> 'a -> 'a) -> 'a t -> (key * 'a) Seq.t -> unit
|
f:(key -> 'a -> 'a -> 'a) -> 'a t -> (key * 'a) Seq.t -> unit
|
||||||
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
|
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
|
||||||
|
|
@ -211,11 +206,6 @@ module type S = sig
|
||||||
using [f] in an unspecified order.
|
using [f] in an unspecified order.
|
||||||
@since 3.3 *)
|
@since 3.3 *)
|
||||||
|
|
||||||
val of_seq : (key * 'a) Seq.t -> 'a t
|
|
||||||
(** From the given bindings, added in order.
|
|
||||||
Renamed from [of_std_seq] since 3.0.
|
|
||||||
@since 3.0 *)
|
|
||||||
|
|
||||||
val of_seq_with : f:(key -> 'a -> 'a -> 'a) -> (key * 'a) Seq.t -> 'a t
|
val of_seq_with : f:(key -> 'a -> 'a -> 'a) -> (key * 'a) Seq.t -> 'a t
|
||||||
(** From the given bindings, added in order.
|
(** From the given bindings, added in order.
|
||||||
If a key occurs multiple times in the input, the values are combined
|
If a key occurs multiple times in the input, the values are combined
|
||||||
|
|
@ -349,8 +339,6 @@ module Make (X : Hashtbl.HashedType) :
|
||||||
| exception Not_found -> add tbl k v
|
| exception Not_found -> add tbl k v
|
||||||
| v2 -> replace tbl k (f k v v2))
|
| v2 -> replace tbl k (f k v v2))
|
||||||
|
|
||||||
let add_seq tbl seq = Seq.iter (fun (k, v) -> add tbl k v) seq
|
|
||||||
|
|
||||||
let add_seq_with ~f tbl seq =
|
let add_seq_with ~f tbl seq =
|
||||||
Seq.iter
|
Seq.iter
|
||||||
(fun (k, v) ->
|
(fun (k, v) ->
|
||||||
|
|
@ -366,7 +354,6 @@ module Make (X : Hashtbl.HashedType) :
|
||||||
tbl
|
tbl
|
||||||
|
|
||||||
let of_iter i = mk_tbl_ add_iter i
|
let of_iter i = mk_tbl_ add_iter i
|
||||||
let of_seq i = mk_tbl_ add_seq i
|
|
||||||
let of_iter_with ~f i = mk_tbl_ (add_iter_with ~f) i
|
let of_iter_with ~f i = mk_tbl_ (add_iter_with ~f) i
|
||||||
let of_seq_with ~f i = mk_tbl_ (add_seq_with ~f) i
|
let of_seq_with ~f i = mk_tbl_ (add_seq_with ~f) i
|
||||||
let add_iter_count tbl i = i (fun k -> incr tbl k)
|
let add_iter_count tbl i = i (fun k -> incr tbl k)
|
||||||
|
|
|
||||||
|
|
@ -253,11 +253,6 @@ module type S = sig
|
||||||
using [f] in an unspecified order.
|
using [f] in an unspecified order.
|
||||||
@since 3.3 *)
|
@since 3.3 *)
|
||||||
|
|
||||||
val add_seq : 'a t -> (key * 'a) Seq.t -> unit
|
|
||||||
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
|
|
||||||
Renamed from [add_std_seq] since 3.0.
|
|
||||||
@since 3.0 *)
|
|
||||||
|
|
||||||
val add_seq_with :
|
val add_seq_with :
|
||||||
f:(key -> 'a -> 'a -> 'a) -> 'a t -> (key * 'a) Seq.t -> unit
|
f:(key -> 'a -> 'a -> 'a) -> 'a t -> (key * 'a) Seq.t -> unit
|
||||||
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
|
(** Add the corresponding pairs to the table, using {!Hashtbl.add}.
|
||||||
|
|
@ -275,11 +270,6 @@ module type S = sig
|
||||||
using [f] in an unspecified order.
|
using [f] in an unspecified order.
|
||||||
@since 3.3 *)
|
@since 3.3 *)
|
||||||
|
|
||||||
val of_seq : (key * 'a) Seq.t -> 'a t
|
|
||||||
(** From the given bindings, added in order.
|
|
||||||
Renamed from [of_std_seq] since 3.0.
|
|
||||||
@since 3.0 *)
|
|
||||||
|
|
||||||
val of_seq_with : f:(key -> 'a -> 'a -> 'a) -> (key * 'a) Seq.t -> 'a t
|
val of_seq_with : f:(key -> 'a -> 'a -> 'a) -> (key * 'a) Seq.t -> 'a t
|
||||||
(** From the given bindings, added in order.
|
(** From the given bindings, added in order.
|
||||||
If a key occurs multiple times in the input, the values are combined
|
If a key occurs multiple times in the input, the values are combined
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue