diff --git a/dev/containers/CCSeq/Infix/index.html b/dev/containers/CCSeq/Infix/index.html new file mode 100644 index 00000000..1a2855d9 --- /dev/null +++ b/dev/containers/CCSeq/Infix/index.html @@ -0,0 +1,2 @@ + +
CCSeq.InfixTraverse.1-MCCSeq.TraverseCCSeqHelpers for the standard Seq type
See oseq for a richer API.
include module type of Stdlib.Seqtype !'a t = unit -> 'a nodeval fold_lefti : ( 'b -> int -> 'a -> 'b ) -> 'b -> 'a t -> 'bval find : ( 'a -> bool ) -> 'a t -> 'a optionval find_map : ( 'a -> 'b option ) -> 'a t -> 'b optionval init : int -> ( int -> 'a ) -> 'a tval forever : ( unit -> 'a ) -> 'a tval iterate : ( 'a -> 'a ) -> 'a -> 'a tval of_dispenser : ( unit -> 'a option ) -> 'a tval to_dispenser : 'a t -> unit -> 'a optionval ints : int -> int tval nil : 'a tval empty : 'a tval singleton : 'a -> 'a tval repeat : ?n:int -> 'a -> 'a trepeat ~n x repeats x n times then stops. If n is omitted, then x is repeated forever.
val unfold : ( 'b -> ('a * 'b) option ) -> 'b -> 'a tunfold f acc calls f acc and:
f acc = Some (x, acc'), yield x, continue with unfold f acc'.f acc = None, stops.val is_empty : 'a t -> boolval head : 'a t -> 'a optionHead of the list.
val fold : ( 'a -> 'b -> 'a ) -> 'a -> 'b t -> 'aFold on values.
val iter : ( 'a -> unit ) -> 'a t -> unitval iteri : ( int -> 'a -> unit ) -> 'a t -> unitIterate with index (starts at 0).
val length : _ t -> intNumber of elements in the list. Will not terminate if the list if infinite: use (for instance) take to make the list finite if necessary.
Fair product of two (possibly infinite) lists into a new list. Lazy. The first parameter is used to combine each pair of elements.
Specialization of product_with producing tuples.
group eq l groups together consecutive elements that satisfy eq. Lazy. For instance group (=) [1;1;1;2;2;3;3;1] yields [1;1;1]; [2;2]; [3;3]; [1].
uniq eq l returns l but removes consecutive duplicates. Lazy. In other words, if several values that are equal follow one another, only the first of them is kept.
val for_all : ( 'a -> bool ) -> 'a t -> boolfor_all p [a1; ...; an] checks if all elements of the sequence satisfy the predicate p. That is, it returns (p a1) && ... && (p an) for a non-empty list and true if the sequence is empty. It consumes the sequence until it finds an element not satisfying the predicate.
val exists : ( 'a -> bool ) -> 'a t -> boolexists p [a1; ...; an] checks if at least one element of the sequence satisfies the predicate p. That is, it returns (p a1) || ... || (p an) for a non-empty sequence and false if the list is empty. It consumes the sequence until it finds an element satisfying the predicate.
val range : int -> int -> int tval (--) : int -> int -> int ta -- b is the range of integers containing a and b (therefore, never empty).
val (--^) : int -> int -> int ta -- b is the integer range from a to b, where b is excluded.
Fold on two collections at once. Stop at soon as one of them ends.
Map on two collections at once. Stop as soon as one of the arguments is exhausted.
Iterate on two collections at once. Stop as soon as one of them ends.
Combine elements pairwise. Stop as soon as one of the lists stops.
Eager sort. Require the iterator to be finite. O(n ln(n)) time and space.
Eager sort that removes duplicate values. Require the iterator to be finite. O(n ln(n)) time and space.
val return : 'a -> 'a tval pure : 'a -> 'a tInfix version of fair_flat_map.
module Infix : sig ... endmodule type MONAD = sig ... endval of_list : 'a list -> 'a tval to_list : 'a t -> 'a listGather all values into a list.
val of_array : 'a array -> 'a tIterate on the array.
val to_array : 'a t -> 'a arrayConvert into array.
val of_string : string -> char tIterate on characters.
val pp :
+CCSeq (containers.CCSeq) Module CCSeq
Helpers for the standard Seq type
See oseq for a richer API.
Basics
val nil : 'a tval empty : 'a tval singleton : 'a -> 'a tval init : int -> ( int -> 'a ) -> 'a tinit n f corresponds to the sequence f 0; f 1; ...; f (n-1).
val repeat : ?n:int -> 'a -> 'a trepeat ~n x repeats x n times then stops. If n is omitted, then x is repeated forever.
val forever : ( unit -> 'a ) -> 'a tforever f corresponds to the infinit sequence containing all the f ().
val iterate : ( 'a -> 'a ) -> 'a -> 'a titerate f a corresponds to the infinit sequence containing a, f a, f (f a), ...]
val unfold : ( 'b -> ('a * 'b) option ) -> 'b -> 'a tunfold f acc calls f acc and:
- if
f acc = Some (x, acc'), yield x, continue with unfold f acc'. - if
f acc = None, stops.
val is_empty : 'a t -> boolis_empty xs checks in the sequence xs is empty
val head : 'a t -> 'a optionHead of the list.
val fold : ( 'a -> 'b -> 'a ) -> 'a -> 'b t -> 'aFold on values.
val foldi : ( 'a -> int -> 'b -> 'a ) -> 'a -> 'b t -> 'afold_lefti f init xs applies f acc i x where acc is the result of the previous computation or init for the first one, i is the index in the sequence (starts at 0) and x is the element of the sequence.
val iter : ( 'a -> unit ) -> 'a t -> unitval iteri : ( int -> 'a -> unit ) -> 'a t -> unitIterate with index (starts at 0).
val length : _ t -> intNumber of elements in the list. Will not terminate if the list if infinite: use (for instance) take to make the list finite if necessary.
Fair product of two (possibly infinite) lists into a new list. Lazy. The first parameter is used to combine each pair of elements.
Alias of product_with.
Specialization of product_with producing tuples.
group eq l groups together consecutive elements that satisfy eq. Lazy. For instance group (=) [1;1;1;2;2;3;3;1] yields [1;1;1]; [2;2]; [3;3]; [1].
uniq eq l returns l but removes consecutive duplicates. Lazy. In other words, if several values that are equal follow one another, only the first of them is kept.
val for_all : ( 'a -> bool ) -> 'a t -> boolfor_all p [a1; ...; an] checks if all elements of the sequence satisfy the predicate p. That is, it returns (p a1) && ... && (p an) for a non-empty list and true if the sequence is empty. It consumes the sequence until it finds an element not satisfying the predicate.
val exists : ( 'a -> bool ) -> 'a t -> boolexists p [a1; ...; an] checks if at least one element of the sequence satisfies the predicate p. That is, it returns (p a1) || ... || (p an) for a non-empty sequence and false if the list is empty. It consumes the sequence until it finds an element satisfying the predicate.
val find : ( 'a -> bool ) -> 'a t -> 'a optionfind p [a1; ...; an] return Some ai for the first ai satisfying the predicate p and return None otherwise.
val find_map : ( 'a -> 'b option ) -> 'a t -> 'b optionfind f [a1; ...; an] return Some (f ai) for the first ai such that f ai = Some _ and return None otherwise.
scan f init xs is the sequence containing the intermediate result of fold f init xs.
val range : int -> int -> int tval (--) : int -> int -> int ta -- b is the range of integers containing a and b (therefore, never empty).
val (--^) : int -> int -> int ta -- b is the integer range from a to b, where b is excluded.
Operations on two Collections
Fold on two collections at once. Stop at soon as one of them ends.
Map on two collections at once. Stop as soon as one of the arguments is exhausted.
Iterate on two collections at once. Stop as soon as one of them ends.
Combine elements pairwise. Stop as soon as one of the lists stops.
Misc
Eager sort. Require the iterator to be finite. O(n ln(n)) time and space.
Eager sort that removes duplicate values. Require the iterator to be finite. O(n ln(n)) time and space.
Fair Combinations
Implementations
val return : 'a -> 'a tval pure : 'a -> 'a tInfix version of fair_flat_map.
Infix operators
module Infix : sig ... endmodule type MONAD = sig ... endConversions
val of_list : 'a list -> 'a tval to_list : 'a t -> 'a listGather all values into a list.
val of_array : 'a array -> 'a tIterate on the array.
val to_array : 'a t -> 'a arrayConvert into array.
val of_string : string -> char tIterate on characters.
IO
val pp :
?pp_start:unit printer ->
?pp_stop:unit printer ->
?pp_sep:unit printer ->
diff --git a/dev/containers/CCSeq/module-type-MONAD/index.html b/dev/containers/CCSeq/module-type-MONAD/index.html
new file mode 100644
index 00000000..43fbfc4f
--- /dev/null
+++ b/dev/containers/CCSeq/module-type-MONAD/index.html
@@ -0,0 +1,2 @@
+
+MONAD (containers.CCSeq.MONAD) Module type CCSeq.MONAD
\ No newline at end of file
diff --git a/dev/containers/CCUnix/Infix/index.html b/dev/containers/CCUnix/Infix/index.html
deleted file mode 100644
index a9824809..00000000
--- a/dev/containers/CCUnix/Infix/index.html
+++ /dev/null
@@ -1,4 +0,0 @@
-
-Infix (containers.CCUnix.Infix) Module CCUnix.Infix
val (?|) : ( 'a, Stdlib.Buffer.t, unit, call_result ) Stdlib.format4 -> 'aInfix version of call.
val (?|&) :
- ( 'a, Stdlib.Buffer.t, unit, async_call_result ) Stdlib.format4 ->
- 'aInfix version of async_call.
\ No newline at end of file
diff --git a/dev/containers/Containers/Hashtbl/Make/index.html b/dev/containers/Containers/Hashtbl/Make/index.html
new file mode 100644
index 00000000..68082fcf
--- /dev/null
+++ b/dev/containers/Containers/Hashtbl/Make/index.html
@@ -0,0 +1,2 @@
+
+Make (containers.Containers.Hashtbl.Make) Module Hashtbl.Make
Parameters
Signature
val 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.t
\ No newline at end of file
diff --git a/dev/containers/Containers/Hashtbl/MakeSeeded/index.html b/dev/containers/Containers/Hashtbl/MakeSeeded/index.html
new file mode 100644
index 00000000..3ce331c5
--- /dev/null
+++ b/dev/containers/Containers/Hashtbl/MakeSeeded/index.html
@@ -0,0 +1,2 @@
+
+MakeSeeded (containers.Containers.Hashtbl.MakeSeeded) Module Hashtbl.MakeSeeded
Parameters
module H : SeededHashedTypeSignature
type key = H.tval create : ?random:bool -> int -> 'a tval clear : 'a t -> unitval reset : 'a t -> unitval length : 'a t -> intval stats : 'a t -> statisticsval to_seq_values : 'a t -> 'a Stdlib.Seq.t
\ No newline at end of file
diff --git a/dev/containers/Containers/Hashtbl/index.html b/dev/containers/Containers/Hashtbl/index.html
new file mode 100644
index 00000000..c6205a8d
--- /dev/null
+++ b/dev/containers/Containers/Hashtbl/index.html
@@ -0,0 +1,33 @@
+
+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 :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ( 'a, 'b ) Stdlib.Hashtbl.t ->
+ ('a * 'b) CCHashtbl.iter ->
+ unitAdd the corresponding pairs to the table, using Hashtbl.add. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
Add the corresponding pairs to the table, using Hashtbl.add. Renamed from add_std_seq since 3.0.
val add_seq_with :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ( 'a, 'b ) Stdlib.Hashtbl.t ->
+ ('a * 'b) Stdlib.Seq.t ->
+ unitAdd the corresponding pairs to the table. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
val of_iter : ('a * 'b) CCHashtbl.iter -> ( 'a, 'b ) Stdlib.Hashtbl.tFrom the given bindings, added in order.
val of_iter_with :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ('a * 'b) CCHashtbl.iter ->
+ ( 'a, 'b ) Stdlib.Hashtbl.tFrom the given bindings, added in order. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
From the given bindings, added in order. Renamed from of_std_seq since 3.0.
val of_seq_with :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ('a * 'b) Stdlib.Seq.t ->
+ ( 'a, 'b ) Stdlib.Hashtbl.tFrom the given bindings, added in order. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
val add_iter_count : ( 'a, int ) Stdlib.Hashtbl.t -> 'a CCHashtbl.iter -> unitadd_iter_count tbl i increments the count of each element of i by calling incr. This is useful for counting how many times each element of i occurs.
add_seq_count tbl seq increments the count of each element of seq by calling incr. This is useful for counting how many times each element of seq occurs. Renamed from add_std_seq_count since 3.0.
val of_iter_count : 'a CCHashtbl.iter -> ( 'a, int ) Stdlib.Hashtbl.tLike add_seq_count, but allocates a new table and returns it.
Like add_seq_count, but allocates a new table and returns it. Renamed from of_std_seq_count since 3.0.
to_list tbl returns the list of (key,value) bindings (order unspecified).
of_list l builds a table from the given list l of bindings k_i -> v_i, added in order using add. If a key occurs several times, it will be added several times, and the visible binding will be the last one.
val of_list_with :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ('a * 'b) list ->
+ ( 'a, 'b ) Stdlib.Hashtbl.tFrom the given bindings, added in order. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
val update :
+ ( 'a, 'b ) Stdlib.Hashtbl.t ->
+ f:( 'a -> 'b option -> 'b option ) ->
+ k:'a ->
+ unitupdate tbl ~f ~k updates key k by calling f k (Some v) if k was mapped to v, or f k None otherwise; if the call returns None then k is removed/stays removed, if the call returns Some v' then the binding k -> v' is inserted using Hashtbl.replace.
get_or_add tbl ~k ~f finds and returns the binding of k in tbl, if it exists. If it does not exist, then f k is called to obtain a new binding v; k -> v is added to tbl and v is returned.
val pp :
+ ?pp_start:unit CCHashtbl.printer ->
+ ?pp_stop:unit CCHashtbl.printer ->
+ ?pp_sep:unit CCHashtbl.printer ->
+ ?pp_arrow:unit CCHashtbl.printer ->
+ 'a CCHashtbl.printer ->
+ 'b CCHashtbl.printer ->
+ ( 'a, 'b ) Stdlib.Hashtbl.t CCHashtbl.printerpp ~pp_start ~pp_stop ~pp_sep ~pp arrow pp_k pp_v returns a table printer given a pp_k printer for individual key and a pp_v printer for individual value. pp_start and pp_stop control the opening and closing delimiters, by default print nothing. pp_sep control the separator between binding. pp_arrow control the arrow between the key and value. Renamed from print since 2.0.
module type S' = CCHashtbl.Smodule Make' = CCHashtbl.Make
\ No newline at end of file
diff --git a/dev/containers/Containers/Hashtbl/module-type-HashedType/index.html b/dev/containers/Containers/Hashtbl/module-type-HashedType/index.html
new file mode 100644
index 00000000..7882dbde
--- /dev/null
+++ b/dev/containers/Containers/Hashtbl/module-type-HashedType/index.html
@@ -0,0 +1,2 @@
+
+HashedType (containers.Containers.Hashtbl.HashedType) Module type Hashtbl.HashedType
\ No newline at end of file
diff --git a/dev/containers/Containers/Hashtbl/module-type-S/index.html b/dev/containers/Containers/Hashtbl/module-type-S/index.html
new file mode 100644
index 00000000..8c4974be
--- /dev/null
+++ b/dev/containers/Containers/Hashtbl/module-type-S/index.html
@@ -0,0 +1,2 @@
+
+S (containers.Containers.Hashtbl.S) Module type Hashtbl.S
val create : int -> 'a tval clear : 'a t -> unitval reset : 'a t -> unitval length : 'a t -> intval stats : 'a t -> statisticsval to_seq_values : 'a t -> 'a Stdlib.Seq.t
\ No newline at end of file
diff --git a/dev/containers/Containers/Hashtbl/module-type-SeededHashedType/index.html b/dev/containers/Containers/Hashtbl/module-type-SeededHashedType/index.html
new file mode 100644
index 00000000..7e00f800
--- /dev/null
+++ b/dev/containers/Containers/Hashtbl/module-type-SeededHashedType/index.html
@@ -0,0 +1,2 @@
+
+SeededHashedType (containers.Containers.Hashtbl.SeededHashedType) Module type Hashtbl.SeededHashedType
\ No newline at end of file
diff --git a/dev/containers/Containers/Hashtbl/module-type-SeededS/index.html b/dev/containers/Containers/Hashtbl/module-type-SeededS/index.html
new file mode 100644
index 00000000..63ac40b3
--- /dev/null
+++ b/dev/containers/Containers/Hashtbl/module-type-SeededS/index.html
@@ -0,0 +1,2 @@
+
+SeededS (containers.Containers.Hashtbl.SeededS) Module type Hashtbl.SeededS
val create : ?random:bool -> int -> 'a tval clear : 'a t -> unitval reset : 'a t -> unitval length : 'a t -> intval stats : 'a t -> statisticsval to_seq_values : 'a t -> 'a Stdlib.Seq.t
\ No newline at end of file
diff --git a/dev/containers/ContainersLabels/Hashtbl/Make/index.html b/dev/containers/ContainersLabels/Hashtbl/Make/index.html
new file mode 100644
index 00000000..04823a7b
--- /dev/null
+++ b/dev/containers/ContainersLabels/Hashtbl/Make/index.html
@@ -0,0 +1,2 @@
+
+Make (containers.ContainersLabels.Hashtbl.Make) Module Hashtbl.Make
Parameters
Signature
val 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.t
\ No newline at end of file
diff --git a/dev/containers/ContainersLabels/Hashtbl/MakeSeeded/index.html b/dev/containers/ContainersLabels/Hashtbl/MakeSeeded/index.html
new file mode 100644
index 00000000..42691ae8
--- /dev/null
+++ b/dev/containers/ContainersLabels/Hashtbl/MakeSeeded/index.html
@@ -0,0 +1,2 @@
+
+MakeSeeded (containers.ContainersLabels.Hashtbl.MakeSeeded) Module Hashtbl.MakeSeeded
Parameters
module H : SeededHashedTypeSignature
type key = H.tval create : ?random:bool -> int -> 'a tval clear : 'a t -> unitval reset : 'a t -> unitval length : 'a t -> intval stats : 'a t -> statisticsval to_seq_values : 'a t -> 'a Stdlib.Seq.t
\ No newline at end of file
diff --git a/dev/containers/ContainersLabels/Hashtbl/index.html b/dev/containers/ContainersLabels/Hashtbl/index.html
new file mode 100644
index 00000000..12eaa84f
--- /dev/null
+++ b/dev/containers/ContainersLabels/Hashtbl/index.html
@@ -0,0 +1,33 @@
+
+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 :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ( 'a, 'b ) Stdlib.Hashtbl.t ->
+ ('a * 'b) CCHashtbl.iter ->
+ unitAdd the corresponding pairs to the table, using Hashtbl.add. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
Add the corresponding pairs to the table, using Hashtbl.add. Renamed from add_std_seq since 3.0.
val add_seq_with :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ( 'a, 'b ) Stdlib.Hashtbl.t ->
+ ('a * 'b) Stdlib.Seq.t ->
+ unitAdd the corresponding pairs to the table. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
val of_iter : ('a * 'b) CCHashtbl.iter -> ( 'a, 'b ) Stdlib.Hashtbl.tFrom the given bindings, added in order.
val of_iter_with :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ('a * 'b) CCHashtbl.iter ->
+ ( 'a, 'b ) Stdlib.Hashtbl.tFrom the given bindings, added in order. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
From the given bindings, added in order. Renamed from of_std_seq since 3.0.
val of_seq_with :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ('a * 'b) Stdlib.Seq.t ->
+ ( 'a, 'b ) Stdlib.Hashtbl.tFrom the given bindings, added in order. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
val add_iter_count : ( 'a, int ) Stdlib.Hashtbl.t -> 'a CCHashtbl.iter -> unitadd_iter_count tbl i increments the count of each element of i by calling incr. This is useful for counting how many times each element of i occurs.
add_seq_count tbl seq increments the count of each element of seq by calling incr. This is useful for counting how many times each element of seq occurs. Renamed from add_std_seq_count since 3.0.
val of_iter_count : 'a CCHashtbl.iter -> ( 'a, int ) Stdlib.Hashtbl.tLike add_seq_count, but allocates a new table and returns it.
Like add_seq_count, but allocates a new table and returns it. Renamed from of_std_seq_count since 3.0.
to_list tbl returns the list of (key,value) bindings (order unspecified).
of_list l builds a table from the given list l of bindings k_i -> v_i, added in order using add. If a key occurs several times, it will be added several times, and the visible binding will be the last one.
val of_list_with :
+ f:( 'a -> 'b -> 'b -> 'b ) ->
+ ('a * 'b) list ->
+ ( 'a, 'b ) Stdlib.Hashtbl.tFrom the given bindings, added in order. If a key occurs multiple times in the input, the values are combined using f in an unspecified order.
val update :
+ ( 'a, 'b ) Stdlib.Hashtbl.t ->
+ f:( 'a -> 'b option -> 'b option ) ->
+ k:'a ->
+ unitupdate tbl ~f ~k updates key k by calling f k (Some v) if k was mapped to v, or f k None otherwise; if the call returns None then k is removed/stays removed, if the call returns Some v' then the binding k -> v' is inserted using Hashtbl.replace.
get_or_add tbl ~k ~f finds and returns the binding of k in tbl, if it exists. If it does not exist, then f k is called to obtain a new binding v; k -> v is added to tbl and v is returned.
val pp :
+ ?pp_start:unit CCHashtbl.printer ->
+ ?pp_stop:unit CCHashtbl.printer ->
+ ?pp_sep:unit CCHashtbl.printer ->
+ ?pp_arrow:unit CCHashtbl.printer ->
+ 'a CCHashtbl.printer ->
+ 'b CCHashtbl.printer ->
+ ( 'a, 'b ) Stdlib.Hashtbl.t CCHashtbl.printerpp ~pp_start ~pp_stop ~pp_sep ~pp arrow pp_k pp_v returns a table printer given a pp_k printer for individual key and a pp_v printer for individual value. pp_start and pp_stop control the opening and closing delimiters, by default print nothing. pp_sep control the separator between binding. pp_arrow control the arrow between the key and value. Renamed from print since 2.0.
module type S' = CCHashtbl.Smodule Make' = CCHashtbl.Make
\ No newline at end of file
diff --git a/dev/containers/ContainersLabels/Hashtbl/module-type-HashedType/index.html b/dev/containers/ContainersLabels/Hashtbl/module-type-HashedType/index.html
new file mode 100644
index 00000000..9cc71f79
--- /dev/null
+++ b/dev/containers/ContainersLabels/Hashtbl/module-type-HashedType/index.html
@@ -0,0 +1,2 @@
+
+HashedType (containers.ContainersLabels.Hashtbl.HashedType) Module type Hashtbl.HashedType
\ No newline at end of file
diff --git a/dev/containers/ContainersLabels/Hashtbl/module-type-S/index.html b/dev/containers/ContainersLabels/Hashtbl/module-type-S/index.html
new file mode 100644
index 00000000..8be31674
--- /dev/null
+++ b/dev/containers/ContainersLabels/Hashtbl/module-type-S/index.html
@@ -0,0 +1,2 @@
+
+S (containers.ContainersLabels.Hashtbl.S) Module type Hashtbl.S
val create : int -> 'a tval clear : 'a t -> unitval reset : 'a t -> unitval length : 'a t -> intval stats : 'a t -> statisticsval to_seq_values : 'a t -> 'a Stdlib.Seq.t
\ No newline at end of file
diff --git a/dev/containers/ContainersLabels/Hashtbl/module-type-SeededHashedType/index.html b/dev/containers/ContainersLabels/Hashtbl/module-type-SeededHashedType/index.html
new file mode 100644
index 00000000..4b18572d
--- /dev/null
+++ b/dev/containers/ContainersLabels/Hashtbl/module-type-SeededHashedType/index.html
@@ -0,0 +1,2 @@
+
+SeededHashedType (containers.ContainersLabels.Hashtbl.SeededHashedType) Module type Hashtbl.SeededHashedType
\ No newline at end of file
diff --git a/dev/containers/ContainersLabels/Hashtbl/module-type-SeededS/index.html b/dev/containers/ContainersLabels/Hashtbl/module-type-SeededS/index.html
new file mode 100644
index 00000000..cb229858
--- /dev/null
+++ b/dev/containers/ContainersLabels/Hashtbl/module-type-SeededS/index.html
@@ -0,0 +1,2 @@
+
+SeededS (containers.ContainersLabels.Hashtbl.SeededS) Module type Hashtbl.SeededS
\ No newline at end of file