mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 11:15:32 -05:00
prepare for 0.11
This commit is contained in:
parent
2417b8e5fd
commit
d3d5881a28
4 changed files with 17 additions and 17 deletions
2
_oasis
2
_oasis
|
|
@ -1,6 +1,6 @@
|
||||||
OASISFormat: 0.4
|
OASISFormat: 0.4
|
||||||
Name: sequence
|
Name: sequence
|
||||||
Version: 0.10
|
Version: 0.11
|
||||||
Homepage: https://github.com/c-cube/sequence
|
Homepage: https://github.com/c-cube/sequence
|
||||||
Authors: Simon Cruanes
|
Authors: Simon Cruanes
|
||||||
License: BSD-2-clause
|
License: BSD-2-clause
|
||||||
|
|
|
||||||
4
opam
4
opam
|
|
@ -1,8 +1,8 @@
|
||||||
opam-version: "1.2"
|
opam-version: "1.2"
|
||||||
name: "sequence"
|
name: "sequence"
|
||||||
version: "0.10"
|
version: "0.11"
|
||||||
author: "Simon Cruanes"
|
author: "Simon Cruanes"
|
||||||
maintainer: "simon.cruanes@inria.fr"
|
maintainer: "simon.cruanes.2007@m4x.org"
|
||||||
license: "BSD-2-clauses"
|
license: "BSD-2-clauses"
|
||||||
build: [
|
build: [
|
||||||
["./configure" "--disable-docs"
|
["./configure" "--disable-docs"
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ val append : 'a t -> 'a t -> 'a t
|
||||||
val append_l : 'a t list -> 'a t
|
val append_l : 'a t list -> 'a t
|
||||||
(** Append sequences. Iterating on the result is like iterating
|
(** Append sequences. Iterating on the result is like iterating
|
||||||
on the each sequence of the list in order.
|
on the each sequence of the list in order.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val concat : 'a t t -> 'a t
|
val concat : 'a t t -> 'a t
|
||||||
(** Concatenate a sequence of sequences into one sequence. *)
|
(** Concatenate a sequence of sequences into one sequence. *)
|
||||||
|
|
@ -208,12 +208,12 @@ val flat_map_l : ('a -> 'b list) -> 'a t -> 'b t
|
||||||
val seq_list : 'a t list -> 'a list t
|
val seq_list : 'a t list -> 'a list t
|
||||||
(** [seq_list l] returns all the ways to pick one element in each sub-sequence
|
(** [seq_list l] returns all the ways to pick one element in each sub-sequence
|
||||||
in [l]. Assumes the sub-sequences can be iterated on several times.
|
in [l]. Assumes the sub-sequences can be iterated on several times.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val seq_list_map : ('a -> 'b t) -> 'a list -> 'b list t
|
val seq_list_map : ('a -> 'b t) -> 'a list -> 'b list t
|
||||||
(** [seq_list_map f l] maps [f] over every element of [l],
|
(** [seq_list_map f l] maps [f] over every element of [l],
|
||||||
then calls {!seq_list}
|
then calls {!seq_list}
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
|
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
|
||||||
(** Map and only keep non-[None] elements
|
(** Map and only keep non-[None] elements
|
||||||
|
|
@ -222,7 +222,7 @@ val filter_map : ('a -> 'b option) -> 'a t -> 'b t
|
||||||
|
|
||||||
val filter_mapi : (int -> 'a -> 'b option) -> 'a t -> 'b t
|
val filter_mapi : (int -> 'a -> 'b option) -> 'a t -> 'b t
|
||||||
(** Map with indices, and only keep non-[None] elements
|
(** Map with indices, and only keep non-[None] elements
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val intersperse : 'a -> 'a t -> 'a t
|
val intersperse : 'a -> 'a t -> 'a t
|
||||||
(** Insert the single element between every element of the sequence *)
|
(** Insert the single element between every element of the sequence *)
|
||||||
|
|
@ -430,11 +430,11 @@ val min_exn : ?lt:('a -> 'a -> bool) -> 'a t -> 'a
|
||||||
|
|
||||||
val sum : int t -> int
|
val sum : int t -> int
|
||||||
(** Sum of elements
|
(** Sum of elements
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val sumf : float t -> float
|
val sumf : float t -> float
|
||||||
(** Sum of elements, using Kahan summation
|
(** Sum of elements, using Kahan summation
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val head : 'a t -> 'a option
|
val head : 'a t -> 'a option
|
||||||
(** First element, if any, otherwise [None]
|
(** First element, if any, otherwise [None]
|
||||||
|
|
@ -513,7 +513,7 @@ val on_list : ('a t -> 'b t) -> 'a list -> 'b list
|
||||||
|
|
||||||
val pair_with_idx : 'a t -> (int * 'a) t
|
val pair_with_idx : 'a t -> (int * 'a) t
|
||||||
(** Similar to {!zip_i} but returns a normal sequence of tuples
|
(** Similar to {!zip_i} but returns a normal sequence of tuples
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val to_opt : 'a t -> 'a option
|
val to_opt : 'a t -> 'a option
|
||||||
(** Alias to {!head}
|
(** Alias to {!head}
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ val append : 'a t -> 'a t -> 'a t
|
||||||
val append_l : 'a t list -> 'a t
|
val append_l : 'a t list -> 'a t
|
||||||
(** Append sequences. Iterating on the result is like iterating
|
(** Append sequences. Iterating on the result is like iterating
|
||||||
on the each sequence of the list in order.
|
on the each sequence of the list in order.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val concat : 'a t t -> 'a t
|
val concat : 'a t t -> 'a t
|
||||||
(** Concatenate a sequence of sequences into one sequence. *)
|
(** Concatenate a sequence of sequences into one sequence. *)
|
||||||
|
|
@ -185,17 +185,17 @@ val filter_map : f:('a -> 'b option) -> 'a t -> 'b t
|
||||||
|
|
||||||
val filter_mapi : f:(int -> 'a -> 'b option) -> 'a t -> 'b t
|
val filter_mapi : f:(int -> 'a -> 'b option) -> 'a t -> 'b t
|
||||||
(** Map with indices, and only keep non-[None] elements
|
(** Map with indices, and only keep non-[None] elements
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val seq_list : 'a t list -> 'a list t
|
val seq_list : 'a t list -> 'a list t
|
||||||
(** [seq_list l] returns all the ways to pick one element in each sub-sequence
|
(** [seq_list l] returns all the ways to pick one element in each sub-sequence
|
||||||
in [l]. Assumes the sub-sequences can be iterated on several times.
|
in [l]. Assumes the sub-sequences can be iterated on several times.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val seq_list_map : f:('a -> 'b t) -> 'a list -> 'b list t
|
val seq_list_map : f:('a -> 'b t) -> 'a list -> 'b list t
|
||||||
(** [seq_list_map f l] maps [f] over every element of [l],
|
(** [seq_list_map f l] maps [f] over every element of [l],
|
||||||
then calls {!seq_list}
|
then calls {!seq_list}
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val intersperse : x:'a -> 'a t -> 'a t
|
val intersperse : x:'a -> 'a t -> 'a t
|
||||||
(** Insert the single element between every element of the sequence *)
|
(** Insert the single element between every element of the sequence *)
|
||||||
|
|
@ -402,11 +402,11 @@ val min_exn : ?lt:('a -> 'a -> bool) -> 'a t -> 'a
|
||||||
|
|
||||||
val sum : int t -> int
|
val sum : int t -> int
|
||||||
(** Sum of elements
|
(** Sum of elements
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val sumf : float t -> float
|
val sumf : float t -> float
|
||||||
(** Sum of elements, using Kahan summation
|
(** Sum of elements, using Kahan summation
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val head : 'a t -> 'a option
|
val head : 'a t -> 'a option
|
||||||
(** First element, if any, otherwise [None]
|
(** First element, if any, otherwise [None]
|
||||||
|
|
@ -485,7 +485,7 @@ val on_list : ('a t -> 'b t) -> 'a list -> 'b list
|
||||||
|
|
||||||
val pair_with_idx : 'a t -> (int * 'a) t
|
val pair_with_idx : 'a t -> (int * 'a) t
|
||||||
(** Similar to {!zip_i} but returns a normal sequence of tuples
|
(** Similar to {!zip_i} but returns a normal sequence of tuples
|
||||||
@since NEXT_RELEASE *)
|
@since 0.11 *)
|
||||||
|
|
||||||
val to_opt : 'a t -> 'a option
|
val to_opt : 'a t -> 'a option
|
||||||
(** Alias to {!head}
|
(** Alias to {!head}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue