diff --git a/dev/containers/CCHashtbl/Make/index.html b/dev/containers/CCHashtbl/Make/index.html index 2be6989f..2fa64c3b 100644 --- a/dev/containers/CCHashtbl/Make/index.html +++ b/dev/containers/CCHashtbl/Make/index.html @@ -1,7 +1,7 @@
CCHashtbl.Makeget tbl k finds a binding for the key k if present, or returns None if no value is found. Safe version of Hashtbl.find.
get_or tbl k ~default returns the value associated to k if present, and returns default otherwise (if k doesn't belong in tbl).
add_list tbl x y adds y to the list x is bound to. If x is not bound, it becomes bound to y.
incr ?by tbl x increments or initializes the counter associated with x. If get tbl x = None, then after update, get tbl x = Some 1; otherwise, if get tbl x = Some n, now get tbl x = Some (n+1).
decr ?by tbl x is like incr but subtract 1 (or the value of by). If the value reaches 0, the key is removed from the table. This does nothing if the key is not already present in the table.
keys_list tbl is the list of keys in tbl. If the key is in the Hashtable multiple times, all occurrences will be returned.
val values_list : 'a t -> 'a listvalues_list t is the list of values in t.
Map on a hashtable's items, collect into a list.
Add the corresponding pairs to the table, using Hashtbl.add.
val add_iter_with :
+ with type 'a t = 'a Stdlib.Hashtbl.Make(X).tval create : int -> 'a tval clear : 'a t -> unitval reset : 'a t -> unitval length : 'a t -> intval stats : 'a t -> Stdlib__Hashtbl.statisticsval to_seq_values : 'a t -> 'a Stdlib.Seq.tget tbl k finds a binding for the key k if present, or returns None if no value is found. Safe version of Hashtbl.find.
get_or tbl k ~default returns the value associated to k if present, and returns default otherwise (if k doesn't belong in tbl).
add_list tbl x y adds y to the list x is bound to. If x is not bound, it becomes bound to y.
incr ?by tbl x increments or initializes the counter associated with x. If get tbl x = None, then after update, get tbl x = Some 1; otherwise, if get tbl x = Some n, now get tbl x = Some (n+1).
decr ?by tbl x is like incr but subtract 1 (or the value of by). If the value reaches 0, the key is removed from the table. This does nothing if the key is not already present in the table.
keys_list tbl is the list of keys in tbl. If the key is in the Hashtable multiple times, all occurrences will be returned.
val values_list : 'a t -> 'a listvalues_list t is the list of values in t.
Map on a hashtable's items, collect into a list.
Add the corresponding pairs to the table, using Hashtbl.add.
val add_iter_with :
f:( key -> 'a -> 'a -> 'a ) ->
'a t ->
(key * 'a) iter ->
diff --git a/dev/containers/CCHashtbl/module-type-S/index.html b/dev/containers/CCHashtbl/module-type-S/index.html
index 211cbc52..1038f2b4 100644
--- a/dev/containers/CCHashtbl/module-type-S/index.html
+++ b/dev/containers/CCHashtbl/module-type-S/index.html
@@ -1,5 +1,5 @@
-S (containers.CCHashtbl.S) Module type CCHashtbl.S
get tbl k finds a binding for the key k if present, or returns None if no value is found. Safe version of Hashtbl.find.
get_or tbl k ~default returns the value associated to k if present, and returns default otherwise (if k doesn't belong in tbl).
add_list tbl x y adds y to the list x is bound to. If x is not bound, it becomes bound to y.
incr ?by tbl x increments or initializes the counter associated with x. If get tbl x = None, then after update, get tbl x = Some 1; otherwise, if get tbl x = Some n, now get tbl x = Some (n+1).
decr ?by tbl x is like incr but subtract 1 (or the value of by). If the value reaches 0, the key is removed from the table. This does nothing if the key is not already present in the table.
keys_list tbl is the list of keys in tbl. If the key is in the Hashtable multiple times, all occurrences will be returned.
val values_list : 'a t -> 'a listvalues_list t is the list of values in t.
Map on a hashtable's items, collect into a list.
Add the corresponding pairs to the table, using Hashtbl.add.
val add_iter_with :
+S (containers.CCHashtbl.S) Module type CCHashtbl.S
get tbl k finds a binding for the key k if present, or returns None if no value is found. Safe version of Hashtbl.find.
get_or tbl k ~default returns the value associated to k if present, and returns default otherwise (if k doesn't belong in tbl).
add_list tbl x y adds y to the list x is bound to. If x is not bound, it becomes bound to y.
incr ?by tbl x increments or initializes the counter associated with x. If get tbl x = None, then after update, get tbl x = Some 1; otherwise, if get tbl x = Some n, now get tbl x = Some (n+1).
decr ?by tbl x is like incr but subtract 1 (or the value of by). If the value reaches 0, the key is removed from the table. This does nothing if the key is not already present in the table.
keys_list tbl is the list of keys in tbl. If the key is in the Hashtable multiple times, all occurrences will be returned.
val values_list : 'a t -> 'a listvalues_list t is the list of values in t.
Map on a hashtable's items, collect into a list.
Add the corresponding pairs to the table, using Hashtbl.add.
val add_iter_with :
f:( key -> 'a -> 'a -> 'a ) ->
'a t ->
(key * 'a) iter ->
diff --git a/dev/containers/CCRandom/index.html b/dev/containers/CCRandom/index.html
index 5cb9fac2..354bbdba 100644
--- a/dev/containers/CCRandom/index.html
+++ b/dev/containers/CCRandom/index.html
@@ -1,5 +1,5 @@
-CCRandom (containers.CCRandom) Module CCRandom
Random Generators
include module type of struct include Stdlib.Random end
type 'a t = state -> 'aRandom generator for values of type 'a.
type 'a random_gen = 'a tval return : 'a -> 'a treturn x is the generator that always returns x. Example: let random_int = return 4 (* fair dice roll *).
Delay evaluation. Useful for side-effectful generators that need some code to run for every call. Example:
let gensym = let r = ref 0 in fun () -> incr r; !r ;;
+CCRandom (containers.CCRandom) Module CCRandom
Random Generators
include module type of struct include Stdlib.Random end
type 'a t = state -> 'aRandom generator for values of type 'a.
type 'a random_gen = 'a tval return : 'a -> 'a treturn x is the generator that always returns x. Example: let random_int = return 4 (* fair dice roll *).
Delay evaluation. Useful for side-effectful generators that need some code to run for every call. Example:
let gensym = let r = ref 0 in fun () -> incr r; !r ;;
delay (fun () ->
let name = gensym() in
diff --git a/dev/containers/CCString/index.html b/dev/containers/CCString/index.html
index dc1af23a..b0e2abbd 100644
--- a/dev/containers/CCString/index.html
+++ b/dev/containers/CCString/index.html
@@ -1,5 +1,5 @@
-CCString (containers.CCString) Module CCString
Basic String Utils
include module type of struct include Stdlib.String end
val to_seqi : t -> (int * char) Stdlib.Seq.tval length : t -> intlength s returns the length (number of characters) of the given string s.
val blit : t -> int -> Stdlib.Bytes.t -> int -> int -> unitblit src src_pos dst dst_pos len copies len characters from string src starting at character indice src_pos, to the Bytes sequence dst starting at character indice dst_pos. Like String.blit. Compatible with the -safe-string option.
val fold : ( 'a -> char -> 'a ) -> 'a -> t -> 'afold f init s folds on chars by increasing index. Computes f(… (f (f init s.[0]) s.[1]) …) s.[n-1].
val foldi : ( 'a -> int -> char -> 'a ) -> 'a -> t -> 'afoldi f init s is just like fold, but it also passes in the index of each chars as second argument to the folded function f.
Conversions
val to_seq : t -> char Stdlib.Seq.tto_seq s returns the Seq.t of characters contained in the string s. Renamed from to std_seq since 3.0.
val to_list : t -> char listto_list s returns the list of characters contained in the string s.
val pp_buf : Stdlib.Buffer.t -> t -> unitpp_buf buf s prints s to the buffer buf. Renamed from pp since 2.0.
val pp : Stdlib.Format.formatter -> t -> unitpp f s prints the string s within quotes to the formatter f. Renamed from print since 2.0.
compare s1 s2 compares the strings s1 and s2 and returns an integer that indicates their relative position in the sort order.
pad ~side ~c n s ensures that the string s is at least n bytes long, and pads it on the side with c if it's not the case.
val of_gen : char gen -> stringof_gen gen converts a gen of characters to a string.
val of_iter : char iter -> stringof_iter iter converts an iter of characters to a string.
of_seq seq converts a seq of characters to a string. Renamed from of_std_seq since 3.0.
to_array s returns the array of characters contained in the string s.
find ~start ~sub s returns the starting index of the first occurrence of sub within s or -1.
val find_all : ?start:int -> sub:string -> string -> int genfind_all ~start ~sub s finds all occurrences of sub in s, even overlapping instances and returns them in a generator gen.
find_all_l ~sub s finds all occurrences of sub in s and returns them in a list.
mem ~start ~sub s is true iff sub is a substring of s.
rfind ~sub s finds sub in string s from the right, returns its first index or -1. Should only be used with very small sub.
val replace :
+CCString (containers.CCString) Module CCString
Basic String Utils
include module type of struct include Stdlib.String end
val to_seqi : t -> (int * char) Stdlib.Seq.tval get_utf_8_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_8 : t -> boolval get_utf_16be_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_16be : t -> boolval get_utf_16le_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_16le : t -> boolval length : t -> intlength s returns the length (number of characters) of the given string s.
val blit : t -> int -> Stdlib.Bytes.t -> int -> int -> unitblit src src_pos dst dst_pos len copies len characters from string src starting at character indice src_pos, to the Bytes sequence dst starting at character indice dst_pos. Like String.blit. Compatible with the -safe-string option.
val fold : ( 'a -> char -> 'a ) -> 'a -> t -> 'afold f init s folds on chars by increasing index. Computes f(… (f (f init s.[0]) s.[1]) …) s.[n-1].
val foldi : ( 'a -> int -> char -> 'a ) -> 'a -> t -> 'afoldi f init s is just like fold, but it also passes in the index of each chars as second argument to the folded function f.
Conversions
val to_seq : t -> char Stdlib.Seq.tto_seq s returns the Seq.t of characters contained in the string s. Renamed from to std_seq since 3.0.
val to_list : t -> char listto_list s returns the list of characters contained in the string s.
val pp_buf : Stdlib.Buffer.t -> t -> unitpp_buf buf s prints s to the buffer buf. Renamed from pp since 2.0.
val pp : Stdlib.Format.formatter -> t -> unitpp f s prints the string s within quotes to the formatter f. Renamed from print since 2.0.
compare s1 s2 compares the strings s1 and s2 and returns an integer that indicates their relative position in the sort order.
pad ~side ~c n s ensures that the string s is at least n bytes long, and pads it on the side with c if it's not the case.
val of_gen : char gen -> stringof_gen gen converts a gen of characters to a string.
val of_iter : char iter -> stringof_iter iter converts an iter of characters to a string.
of_seq seq converts a seq of characters to a string. Renamed from of_std_seq since 3.0.
to_array s returns the array of characters contained in the string s.
find ~start ~sub s returns the starting index of the first occurrence of sub within s or -1.
val find_all : ?start:int -> sub:string -> string -> int genfind_all ~start ~sub s finds all occurrences of sub in s, even overlapping instances and returns them in a generator gen.
find_all_l ~sub s finds all occurrences of sub in s and returns them in a list.
mem ~start ~sub s is true iff sub is a substring of s.
rfind ~sub s finds sub in string s from the right, returns its first index or -1. Should only be used with very small sub.
val replace :
?which:[ `Left | `Right | `All ] ->
sub:string ->
by:string ->
diff --git a/dev/containers/CCStringLabels/index.html b/dev/containers/CCStringLabels/index.html
index 7c02015f..b920f900 100644
--- a/dev/containers/CCStringLabels/index.html
+++ b/dev/containers/CCStringLabels/index.html
@@ -1,5 +1,5 @@
-CCStringLabels (containers.CCStringLabels) Module CCStringLabels
Basic String Utils (Labeled version of CCString)
include module type of struct include Stdlib.StringLabels end
val to_seqi : t -> (int * char) Stdlib.Seq.tval unsafe_blit :
+CCStringLabels (containers.CCStringLabels) Module CCStringLabels
Basic String Utils (Labeled version of CCString)
include module type of struct include Stdlib.StringLabels end
val to_seqi : t -> (int * char) Stdlib.Seq.tval get_utf_8_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_8 : t -> boolval get_utf_16be_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_16be : t -> boolval get_utf_16le_uchar : t -> int -> Stdlib.Uchar.utf_decodeval is_valid_utf_16le : t -> boolval unsafe_blit :
src:string ->
src_pos:int ->
dst:bytes ->
diff --git a/dev/containers/Containers/Hashtbl/index.html b/dev/containers/Containers/Hashtbl/index.html
index a5b57295..c6205a8d 100644
--- a/dev/containers/Containers/Hashtbl/index.html
+++ b/dev/containers/Containers/Hashtbl/index.html
@@ -2,7 +2,7 @@
Hashtbl (containers.Containers.Hashtbl) Module Containers.Hashtbl
include module type of Stdlib.Hashtbl
with type statistics = Stdlib.Hashtbl.statistics
and module Make = Stdlib.Hashtbl.Make
- and type ('a, 'b) t = ( 'a, 'b ) Stdlib.Hashtbl.t
val create : ?random:bool -> int -> ( 'a, 'b ) tval clear : ( 'a, 'b ) t -> unitval reset : ( 'a, 'b ) t -> unitval add : ( 'a, 'b ) t -> 'a -> 'b -> unitval find : ( 'a, 'b ) t -> 'a -> 'bval find_opt : ( 'a, 'b ) t -> 'a -> 'b optionval find_all : ( 'a, 'b ) t -> 'a -> 'b listval mem : ( 'a, 'b ) t -> 'a -> boolval remove : ( 'a, 'b ) t -> 'a -> unitval replace : ( 'a, 'b ) t -> 'a -> 'b -> unitval iter : ( 'a -> 'b -> unit ) -> ( 'a, 'b ) t -> unitval filter_map_inplace : ( 'a -> 'b -> 'b option ) -> ( 'a, 'b ) t -> unitval fold : ( 'a -> 'b -> 'c -> 'c ) -> ( 'a, 'b ) t -> 'c -> 'cval length : ( 'a, 'b ) t -> intval stats : ( 'a, 'b ) t -> statisticsval to_seq : ( 'a, 'b ) t -> ('a * 'b) Stdlib.Seq.tval to_seq_keys : ( 'a, 'b ) t -> 'a Stdlib.Seq.tval to_seq_values : ( 'a, 'b ) t -> 'b Stdlib.Seq.tval replace_seq : ( 'a, 'b ) t -> ('a * 'b) Stdlib.Seq.t -> unitmodule type HashedType = sig ... endmodule type S = sig ... endmodule type SeededHashedType = sig ... endmodule type SeededS = sig ... endmodule MakeSeeded (H : SeededHashedType) : sig ... endinclude module type of struct include CCHashtbl.Poly end
get tbl k finds a binding for the key k if present, or returns None if no value is found. Safe version of Hashtbl.find.
get_or tbl k ~default returns the value associated to k if present, and returns default otherwise (if k doesn't belong in tbl).
val keys : ( 'a, 'b ) Stdlib.Hashtbl.t -> 'a CCHashtbl.iterkeys tbl f iterates on keys (similar order as Hashtbl.iter).
val values : ( 'a, 'b ) Stdlib.Hashtbl.t -> 'b CCHashtbl.itervalues tbl f iterates on values in the table tbl.
keys_list tbl is the list of keys in tbl. If the key is in the Hashtable multiple times, all occurrences will be returned.
values_list tbl is the list of values in tbl.
map_list f tbl maps on a tbl's items. Collect into a list.
incr ?by tbl x increments or initializes the counter associated with x. If get tbl x = None, then after update, get tbl x = Some 1; otherwise, if get tbl x = Some n, now get tbl x = Some (n+1).
decr ?by tbl x is like incr but subtract 1 (or the value of by). If the value reaches 0, the key is removed from the table. This does nothing if the key is not already present in the table.
val to_iter : ( 'a, 'b ) Stdlib.Hashtbl.t -> ('a * 'b) CCHashtbl.iterIterate on bindings in the table.
add_list tbl x y adds y to the list x is bound to. If x is not bound, it becomes bound to y.
val add_iter : ( 'a, 'b ) Stdlib.Hashtbl.t -> ('a * 'b) CCHashtbl.iter -> unitAdd the corresponding pairs to the table, using Hashtbl.add.
val add_iter_with :
+ and type ('a, 'b) t = ( 'a, 'b ) Stdlib.Hashtbl.tval create : ?random:bool -> int -> ( 'a, 'b ) tval clear : ( 'a, 'b ) t -> unitval reset : ( 'a, 'b ) t -> unitval add : ( 'a, 'b ) t -> 'a -> 'b -> unitval find : ( 'a, 'b ) t -> 'a -> 'bval find_opt : ( 'a, 'b ) t -> 'a -> 'b optionval find_all : ( 'a, 'b ) t -> 'a -> 'b listval mem : ( 'a, 'b ) t -> 'a -> boolval remove : ( 'a, 'b ) t -> 'a -> unitval replace : ( 'a, 'b ) t -> 'a -> 'b -> unitval iter : ( 'a -> 'b -> unit ) -> ( 'a, 'b ) t -> unitval filter_map_inplace : ( 'a -> 'b -> 'b option ) -> ( 'a, 'b ) t -> unitval fold : ( 'a -> 'b -> 'c -> 'c ) -> ( 'a, 'b ) t -> 'c -> 'cval length : ( 'a, 'b ) t -> intval stats : ( 'a, 'b ) t -> statisticsval to_seq : ( 'a, 'b ) t -> ('a * 'b) Stdlib.Seq.tval to_seq_keys : ( 'a, 'b ) t -> 'a Stdlib.Seq.tval to_seq_values : ( 'a, 'b ) t -> 'b Stdlib.Seq.tval replace_seq : ( 'a, 'b ) t -> ('a * 'b) Stdlib.Seq.t -> unitmodule type HashedType = sig ... endmodule type S = sig ... endmodule type SeededHashedType = sig ... endmodule type SeededS = sig ... endmodule MakeSeeded (H : SeededHashedType) : sig ... endinclude module type of struct include CCHashtbl.Poly end
get tbl k finds a binding for the key k if present, or returns None if no value is found. Safe version of Hashtbl.find.
get_or tbl k ~default returns the value associated to k if present, and returns default otherwise (if k doesn't belong in tbl).
val keys : ( 'a, 'b ) Stdlib.Hashtbl.t -> 'a CCHashtbl.iterkeys tbl f iterates on keys (similar order as Hashtbl.iter).
val values : ( 'a, 'b ) Stdlib.Hashtbl.t -> 'b CCHashtbl.itervalues tbl f iterates on values in the table tbl.
keys_list tbl is the list of keys in tbl. If the key is in the Hashtable multiple times, all occurrences will be returned.
values_list tbl is the list of values in tbl.
map_list f tbl maps on a tbl's items. Collect into a list.
incr ?by tbl x increments or initializes the counter associated with x. If get tbl x = None, then after update, get tbl x = Some 1; otherwise, if get tbl x = Some n, now get tbl x = Some (n+1).
decr ?by tbl x is like incr but subtract 1 (or the value of by). If the value reaches 0, the key is removed from the table. This does nothing if the key is not already present in the table.
val to_iter : ( 'a, 'b ) Stdlib.Hashtbl.t -> ('a * 'b) CCHashtbl.iterIterate on bindings in the table.
add_list tbl x y adds y to the list x is bound to. If x is not bound, it becomes bound to y.
val add_iter : ( 'a, 'b ) Stdlib.Hashtbl.t -> ('a * 'b) CCHashtbl.iter -> unitAdd the corresponding pairs to the table, using Hashtbl.add.
val add_iter_with :
f:( 'a -> 'b -> 'b -> 'b ) ->
( 'a, 'b ) Stdlib.Hashtbl.t ->
('a * 'b) CCHashtbl.iter ->
diff --git a/dev/containers/ContainersLabels/Hashtbl/index.html b/dev/containers/ContainersLabels/Hashtbl/index.html
index ffef43b8..12eaa84f 100644
--- a/dev/containers/ContainersLabels/Hashtbl/index.html
+++ b/dev/containers/ContainersLabels/Hashtbl/index.html
@@ -2,7 +2,7 @@
Hashtbl (containers.ContainersLabels.Hashtbl) Module ContainersLabels.Hashtbl
include module type of Stdlib.Hashtbl
with type statistics = Stdlib.Hashtbl.statistics
and module Make = Stdlib.Hashtbl.Make
- and type ('a, 'b) t = ( 'a, 'b ) Stdlib.Hashtbl.t
val create : ?random:bool -> int -> ( 'a, 'b ) tval clear : ( 'a, 'b ) t -> unitval reset : ( 'a, 'b ) t -> unitval add : ( 'a, 'b ) t -> 'a -> 'b -> unitval find : ( 'a, 'b ) t -> 'a -> 'bval find_opt : ( 'a, 'b ) t -> 'a -> 'b optionval find_all : ( 'a, 'b ) t -> 'a -> 'b listval mem : ( 'a, 'b ) t -> 'a -> boolval remove : ( 'a, 'b ) t -> 'a -> unitval replace : ( 'a, 'b ) t -> 'a -> 'b -> unitval iter : ( 'a -> 'b -> unit ) -> ( 'a, 'b ) t -> unitval filter_map_inplace : ( 'a -> 'b -> 'b option ) -> ( 'a, 'b ) t -> unitval fold : ( 'a -> 'b -> 'c -> 'c ) -> ( 'a, 'b ) t -> 'c -> 'cval length : ( 'a, 'b ) t -> intval stats : ( 'a, 'b ) t -> statisticsval to_seq : ( 'a, 'b ) t -> ('a * 'b) Stdlib.Seq.tval to_seq_keys : ( 'a, 'b ) t -> 'a Stdlib.Seq.tval to_seq_values : ( 'a, 'b ) t -> 'b Stdlib.Seq.tval replace_seq : ( 'a, 'b ) t -> ('a * 'b) Stdlib.Seq.t -> unitmodule type HashedType = sig ... endmodule type S = sig ... endmodule type SeededHashedType = sig ... endmodule type SeededS = sig ... endmodule MakeSeeded (H : SeededHashedType) : sig ... endinclude module type of struct include CCHashtbl.Poly end
get tbl k finds a binding for the key k if present, or returns None if no value is found. Safe version of Hashtbl.find.
get_or tbl k ~default returns the value associated to k if present, and returns default otherwise (if k doesn't belong in tbl).
val keys : ( 'a, 'b ) Stdlib.Hashtbl.t -> 'a CCHashtbl.iterkeys tbl f iterates on keys (similar order as Hashtbl.iter).
val values : ( 'a, 'b ) Stdlib.Hashtbl.t -> 'b CCHashtbl.itervalues tbl f iterates on values in the table tbl.
keys_list tbl is the list of keys in tbl. If the key is in the Hashtable multiple times, all occurrences will be returned.
values_list tbl is the list of values in tbl.
map_list f tbl maps on a tbl's items. Collect into a list.
incr ?by tbl x increments or initializes the counter associated with x. If get tbl x = None, then after update, get tbl x = Some 1; otherwise, if get tbl x = Some n, now get tbl x = Some (n+1).
decr ?by tbl x is like incr but subtract 1 (or the value of by). If the value reaches 0, the key is removed from the table. This does nothing if the key is not already present in the table.
val to_iter : ( 'a, 'b ) Stdlib.Hashtbl.t -> ('a * 'b) CCHashtbl.iterIterate on bindings in the table.
add_list tbl x y adds y to the list x is bound to. If x is not bound, it becomes bound to y.
val add_iter : ( 'a, 'b ) Stdlib.Hashtbl.t -> ('a * 'b) CCHashtbl.iter -> unitAdd the corresponding pairs to the table, using Hashtbl.add.
val add_iter_with :
+ and type ('a, 'b) t = ( 'a, 'b ) Stdlib.Hashtbl.tval create : ?random:bool -> int -> ( 'a, 'b ) tval clear : ( 'a, 'b ) t -> unitval reset : ( 'a, 'b ) t -> unitval add : ( 'a, 'b ) t -> 'a -> 'b -> unitval find : ( 'a, 'b ) t -> 'a -> 'bval find_opt : ( 'a, 'b ) t -> 'a -> 'b optionval find_all : ( 'a, 'b ) t -> 'a -> 'b listval mem : ( 'a, 'b ) t -> 'a -> boolval remove : ( 'a, 'b ) t -> 'a -> unitval replace : ( 'a, 'b ) t -> 'a -> 'b -> unitval iter : ( 'a -> 'b -> unit ) -> ( 'a, 'b ) t -> unitval filter_map_inplace : ( 'a -> 'b -> 'b option ) -> ( 'a, 'b ) t -> unitval fold : ( 'a -> 'b -> 'c -> 'c ) -> ( 'a, 'b ) t -> 'c -> 'cval length : ( 'a, 'b ) t -> intval stats : ( 'a, 'b ) t -> statisticsval to_seq : ( 'a, 'b ) t -> ('a * 'b) Stdlib.Seq.tval to_seq_keys : ( 'a, 'b ) t -> 'a Stdlib.Seq.tval to_seq_values : ( 'a, 'b ) t -> 'b Stdlib.Seq.tval replace_seq : ( 'a, 'b ) t -> ('a * 'b) Stdlib.Seq.t -> unitmodule type HashedType = sig ... endmodule type S = sig ... endmodule type SeededHashedType = sig ... endmodule type SeededS = sig ... endmodule MakeSeeded (H : SeededHashedType) : sig ... endinclude module type of struct include CCHashtbl.Poly end
get tbl k finds a binding for the key k if present, or returns None if no value is found. Safe version of Hashtbl.find.
get_or tbl k ~default returns the value associated to k if present, and returns default otherwise (if k doesn't belong in tbl).
val keys : ( 'a, 'b ) Stdlib.Hashtbl.t -> 'a CCHashtbl.iterkeys tbl f iterates on keys (similar order as Hashtbl.iter).
val values : ( 'a, 'b ) Stdlib.Hashtbl.t -> 'b CCHashtbl.itervalues tbl f iterates on values in the table tbl.
keys_list tbl is the list of keys in tbl. If the key is in the Hashtable multiple times, all occurrences will be returned.
values_list tbl is the list of values in tbl.
map_list f tbl maps on a tbl's items. Collect into a list.
incr ?by tbl x increments or initializes the counter associated with x. If get tbl x = None, then after update, get tbl x = Some 1; otherwise, if get tbl x = Some n, now get tbl x = Some (n+1).
decr ?by tbl x is like incr but subtract 1 (or the value of by). If the value reaches 0, the key is removed from the table. This does nothing if the key is not already present in the table.
val to_iter : ( 'a, 'b ) Stdlib.Hashtbl.t -> ('a * 'b) CCHashtbl.iterIterate on bindings in the table.
add_list tbl x y adds y to the list x is bound to. If x is not bound, it becomes bound to y.
val add_iter : ( 'a, 'b ) Stdlib.Hashtbl.t -> ('a * 'b) CCHashtbl.iter -> unitAdd the corresponding pairs to the table, using Hashtbl.add.
val add_iter_with :
f:( 'a -> 'b -> 'b -> 'b ) ->
( 'a, 'b ) Stdlib.Hashtbl.t ->
('a * 'b) CCHashtbl.iter ->