diff --git a/dev/containers/CCSeq/index.html b/dev/containers/CCSeq/index.html
index b07afe8a..9e33bb0b 100644
--- a/dev/containers/CCSeq/index.html
+++ b/dev/containers/CCSeq/index.html
@@ -1,2 +1,2 @@
-
type 'a iter = ('a -> unit) -> unittype 'a gen = unit -> 'a optiontype 'a equal = 'a -> 'a -> booltype 'a ord = 'a -> 'a -> inttype 'a printer = Stdlib.Format.formatter -> 'a -> unit
type +'a t = unit -> 'a nodeand +'a node = 'a Stdlib.Seq.node =
val nil : 'a tval empty : 'a tval cons : 'a -> 'a t -> '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.
- since
- 0.3.3
val cycle : 'a t -> 'a tCycle through the iterator infinitely. The iterator shouldn't be empty.
- since
- 0.3.3
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.
- since
- 0.13
val is_empty : 'a t -> boolval head : 'a t -> 'a optionHead of the list.
- since
- 0.13
val head_exn : 'a t -> 'aUnsafe version of head.
- raises Not_found
if the list is empty.
- since
- 0.13
val tail : 'a t -> 'a t optionTail of the list.
- since
- 0.13
val tail_exn : 'a t -> 'a tUnsafe version of tail.
- raises Not_found
if the list is empty.
- since
- 0.13
val equal : 'a equal -> 'a t equalEquality step by step. Eager.
val compare : 'a ord -> 'a t ordLexicographic comparison. Eager.
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'aFold on values.
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'aAlias for fold
val iter : ('a -> unit) -> 'a t -> unitval iteri : (int -> 'a -> unit) -> 'a t -> unitIterate with index (starts at 0).
- since
- 0.13
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.
val take : int -> 'a t -> 'a tval take_while : ('a -> bool) -> 'a t -> 'a tval drop : int -> 'a t -> 'a tval drop_while : ('a -> bool) -> 'a t -> 'a tval map : ('a -> 'b) -> 'a t -> 'b tval mapi : (int -> 'a -> 'b) -> 'a t -> 'b tMap with index (starts at 0).
- since
- 0.13
val fmap : ('a -> 'b option) -> 'a t -> 'b tval filter : ('a -> bool) -> 'a t -> 'a tval append : 'a t -> 'a t -> 'a tval product_with : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c tFair product of two (possibly infinite) lists into a new list. Lazy. The first parameter is used to combine each pair of elements.
- since
- 0.3.3
val product : 'a t -> 'b t -> ('a * 'b) tSpecialization of product_with producing tuples.
- since
- 0.3.3
val group : 'a equal -> 'a t -> 'a t tgroup 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].
- since
- 0.3.3
val uniq : 'a equal -> 'a t -> 'a tuniq 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.
- since
- 0.3.3
val flat_map : ('a -> 'b t) -> 'a t -> 'b tval filter_map : ('a -> 'b option) -> 'a t -> 'b tval flatten : 'a t t -> 'a tval 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.
- since
- 0.17
Operations on two Collections
val fold2 : ('acc -> 'a -> 'b -> 'acc) -> 'acc -> 'a t -> 'b t -> 'accFold on two collections at once. Stop at soon as one of them ends.
val map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c tMap on two collections at once. Stop as soon as one of the arguments is exhausted.
val iter2 : ('a -> 'b -> unit) -> 'a t -> 'b t -> unitIterate on two collections at once. Stop as soon as one of them ends.
val for_all2 : ('a -> 'b -> bool) -> 'a t -> 'b t -> boolval exists2 : ('a -> 'b -> bool) -> 'a t -> 'b t -> boolval merge : 'a ord -> 'a t -> 'a t -> 'a tMerge two sorted iterators into a sorted iterator.
val zip : 'a t -> 'b t -> ('a * 'b) tCombine elements pairwise. Stop as soon as one of the lists stops.
- since
- 0.13
val unzip : ('a * 'b) t -> 'a t * 'b tSplit each tuple in the list.
- since
- 0.13
val sort : cmp:'a ord -> 'a t -> 'a tEager sort. Require the iterator to be finite. O(n ln(n)) time and space.
- since
- 0.3.3
val sort_uniq : cmp:'a ord -> 'a t -> 'a tEager sort that removes duplicate values. Require the iterator to be finite. O(n ln(n)) time and space.
- since
- 0.3.3
val memoize : 'a t -> 'a tAvoid recomputations by caching intermediate results.
- since
- 0.14
val interleave : 'a t -> 'a t -> 'a tFair interleaving of both streams.
- since
- 0.13
val fair_flat_map : ('a -> 'b t) -> 'a t -> 'b tFair version of flat_map.
- since
- 0.13
val fair_app : ('a -> 'b) t -> 'a t -> 'b tFair version of (<*>).
- since
- 0.13
Implementations
- since
- 0.3.3
val return : 'a -> 'a tval pure : 'a -> 'a tval (>>=) : 'a t -> ('a -> 'b t) -> 'b tval (>|=) : 'a t -> ('a -> 'b) -> 'b tval (<*>) : ('a -> 'b) t -> 'a t -> 'b tval (>>-) : 'a t -> ('a -> 'b t) -> 'b tInfix version of fair_flat_map.
- since
- 0.13
val (<.>) : ('a -> 'b) t -> 'a t -> 'b tInfix version of fair_app.
- since
- 0.13
module Infix : sig ... endmodule type MONAD = sig ... end
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.
- since
- 0.13
val to_array : 'a t -> 'a arrayConvert into array. Iterate twice.
- since
- 0.13
val to_rev_list : 'a t -> 'a listConvert to a list, in reverse order. More efficient than to_list.
val to_iter : 'a t -> 'a iterval to_gen : 'a t -> 'a genval of_gen : 'a gen -> 'a tof_gen g consumes the generator and caches intermediate results.
- since
- 0.13
val pp : ?pp_start:unit printer -> ?pp_stop:unit printer -> ?pp_sep:unit printer -> 'a printer -> 'a t printerpp ~pp_start ~pp_stop ~pp_sep pp_item ppf s formats the sequence s on ppf. Each element is formatted with pp_item, pp_start is called at the beginning, pp_stop is called at the end, pp_sep is called between each elements. By defaults pp_start and pp_stop does nothing and pp_sep defaults to (fun out -> Format.fprintf out ",@ ").
\ No newline at end of file
+type 'a iter = ('a -> unit) -> unittype 'a gen = unit -> 'a optiontype 'a equal = 'a -> 'a -> booltype 'a ord = 'a -> 'a -> inttype 'a printer = Stdlib.Format.formatter -> 'a -> unit
type +'a t = unit -> 'a nodeand +'a node = 'a Stdlib.Seq.node =
val nil : 'a tval empty : 'a tval cons : 'a -> 'a t -> '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.
- since
- 0.3.3
val cycle : 'a t -> 'a tCycle through the iterator infinitely. The iterator shouldn't be empty.
- since
- 0.3.3
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.
- since
- 0.13
val is_empty : 'a t -> boolval head : 'a t -> 'a optionHead of the list.
- since
- 0.13
val head_exn : 'a t -> 'aUnsafe version of head.
- raises Not_found
if the list is empty.
- since
- 0.13
val tail : 'a t -> 'a t optionTail of the list.
- since
- 0.13
val tail_exn : 'a t -> 'a tUnsafe version of tail.
- raises Not_found
if the list is empty.
- since
- 0.13
val equal : 'a equal -> 'a t equalEquality step by step. Eager.
val compare : 'a ord -> 'a t ordLexicographic comparison. Eager.
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'aFold on values.
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'aAlias for fold
val iter : ('a -> unit) -> 'a t -> unitval iteri : (int -> 'a -> unit) -> 'a t -> unitIterate with index (starts at 0).
- since
- 0.13
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.
val take : int -> 'a t -> 'a tval take_while : ('a -> bool) -> 'a t -> 'a tval drop : int -> 'a t -> 'a tval drop_while : ('a -> bool) -> 'a t -> 'a tval map : ('a -> 'b) -> 'a t -> 'b tval mapi : (int -> 'a -> 'b) -> 'a t -> 'b tMap with index (starts at 0).
- since
- 0.13
val fmap : ('a -> 'b option) -> 'a t -> 'b tval filter : ('a -> bool) -> 'a t -> 'a tval append : 'a t -> 'a t -> 'a tval product_with : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c tFair product of two (possibly infinite) lists into a new list. Lazy. The first parameter is used to combine each pair of elements.
- since
- 0.3.3
val product : 'a t -> 'b t -> ('a * 'b) tSpecialization of product_with producing tuples.
- since
- 0.3.3
val group : 'a equal -> 'a t -> 'a t tgroup 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].
- since
- 0.3.3
val uniq : 'a equal -> 'a t -> 'a tuniq 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.
- since
- 0.3.3
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.
- since
- NEXT_RELEASE
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.
- since
- NEXT_RELEASE
val flat_map : ('a -> 'b t) -> 'a t -> 'b tval filter_map : ('a -> 'b option) -> 'a t -> 'b tval flatten : 'a t t -> 'a tval 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.
- since
- 0.17
Operations on two Collections
val fold2 : ('acc -> 'a -> 'b -> 'acc) -> 'acc -> 'a t -> 'b t -> 'accFold on two collections at once. Stop at soon as one of them ends.
val map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c tMap on two collections at once. Stop as soon as one of the arguments is exhausted.
val iter2 : ('a -> 'b -> unit) -> 'a t -> 'b t -> unitIterate on two collections at once. Stop as soon as one of them ends.
val for_all2 : ('a -> 'b -> bool) -> 'a t -> 'b t -> boolval exists2 : ('a -> 'b -> bool) -> 'a t -> 'b t -> boolval merge : 'a ord -> 'a t -> 'a t -> 'a tMerge two sorted iterators into a sorted iterator.
val zip : 'a t -> 'b t -> ('a * 'b) tCombine elements pairwise. Stop as soon as one of the lists stops.
- since
- 0.13
val unzip : ('a * 'b) t -> 'a t * 'b tSplit each tuple in the list.
- since
- 0.13
val sort : cmp:'a ord -> 'a t -> 'a tEager sort. Require the iterator to be finite. O(n ln(n)) time and space.
- since
- 0.3.3
val sort_uniq : cmp:'a ord -> 'a t -> 'a tEager sort that removes duplicate values. Require the iterator to be finite. O(n ln(n)) time and space.
- since
- 0.3.3
val memoize : 'a t -> 'a tAvoid recomputations by caching intermediate results.
- since
- 0.14
val interleave : 'a t -> 'a t -> 'a tFair interleaving of both streams.
- since
- 0.13
val fair_flat_map : ('a -> 'b t) -> 'a t -> 'b tFair version of flat_map.
- since
- 0.13
val fair_app : ('a -> 'b) t -> 'a t -> 'b tFair version of (<*>).
- since
- 0.13
Implementations
- since
- 0.3.3
val return : 'a -> 'a tval pure : 'a -> 'a tval (>>=) : 'a t -> ('a -> 'b t) -> 'b tval (>|=) : 'a t -> ('a -> 'b) -> 'b tval (<*>) : ('a -> 'b) t -> 'a t -> 'b tval (>>-) : 'a t -> ('a -> 'b t) -> 'b tInfix version of fair_flat_map.
- since
- 0.13
val (<.>) : ('a -> 'b) t -> 'a t -> 'b tInfix version of fair_app.
- since
- 0.13
module Infix : sig ... endmodule type MONAD = sig ... end
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.
- since
- 0.13
val to_array : 'a t -> 'a arrayConvert into array. Iterate twice.
- since
- 0.13
val to_rev_list : 'a t -> 'a listConvert to a list, in reverse order. More efficient than to_list.
val to_iter : 'a t -> 'a iterval to_gen : 'a t -> 'a genval of_gen : 'a gen -> 'a tof_gen g consumes the generator and caches intermediate results.
- since
- 0.13
val pp : ?pp_start:unit printer -> ?pp_stop:unit printer -> ?pp_sep:unit printer -> 'a printer -> 'a t printerpp ~pp_start ~pp_stop ~pp_sep pp_item ppf s formats the sequence s on ppf. Each element is formatted with pp_item, pp_start is called at the beginning, pp_stop is called at the end, pp_sep is called between each elements. By defaults pp_start and pp_stop does nothing and pp_sep defaults to (fun out -> Format.fprintf out ",@ ").
\ No newline at end of file