prepare for 0.11

This commit is contained in:
Simon Cruanes 2017-12-15 12:51:02 +01:00
parent 2417b8e5fd
commit d3d5881a28
4 changed files with 17 additions and 17 deletions

2
_oasis
View file

@ -1,6 +1,6 @@
OASISFormat: 0.4
Name: sequence
Version: 0.10
Version: 0.11
Homepage: https://github.com/c-cube/sequence
Authors: Simon Cruanes
License: BSD-2-clause

4
opam
View file

@ -1,8 +1,8 @@
opam-version: "1.2"
name: "sequence"
version: "0.10"
version: "0.11"
author: "Simon Cruanes"
maintainer: "simon.cruanes@inria.fr"
maintainer: "simon.cruanes.2007@m4x.org"
license: "BSD-2-clauses"
build: [
["./configure" "--disable-docs"

View file

@ -187,7 +187,7 @@ val append : 'a t -> 'a t -> 'a t
val append_l : 'a t list -> 'a t
(** Append sequences. Iterating on the result is like iterating
on the each sequence of the list in order.
@since NEXT_RELEASE *)
@since 0.11 *)
val concat : 'a t t -> 'a t
(** 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
(** [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.
@since NEXT_RELEASE *)
@since 0.11 *)
val seq_list_map : ('a -> 'b t) -> 'a list -> 'b list t
(** [seq_list_map f l] maps [f] over every element of [l],
then calls {!seq_list}
@since NEXT_RELEASE *)
@since 0.11 *)
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
(** 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
(** Map with indices, and only keep non-[None] elements
@since NEXT_RELEASE *)
@since 0.11 *)
val intersperse : 'a -> 'a t -> 'a t
(** 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
(** Sum of elements
@since NEXT_RELEASE *)
@since 0.11 *)
val sumf : float t -> float
(** Sum of elements, using Kahan summation
@since NEXT_RELEASE *)
@since 0.11 *)
val head : 'a t -> 'a option
(** 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
(** Similar to {!zip_i} but returns a normal sequence of tuples
@since NEXT_RELEASE *)
@since 0.11 *)
val to_opt : 'a t -> 'a option
(** Alias to {!head}

View file

@ -165,7 +165,7 @@ val append : 'a t -> 'a t -> 'a t
val append_l : 'a t list -> 'a t
(** Append sequences. Iterating on the result is like iterating
on the each sequence of the list in order.
@since NEXT_RELEASE *)
@since 0.11 *)
val concat : 'a t t -> 'a t
(** 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
(** Map with indices, and only keep non-[None] elements
@since NEXT_RELEASE *)
@since 0.11 *)
val seq_list : 'a t list -> 'a list t
(** [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.
@since NEXT_RELEASE *)
@since 0.11 *)
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],
then calls {!seq_list}
@since NEXT_RELEASE *)
@since 0.11 *)
val intersperse : x:'a -> 'a t -> 'a t
(** 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
(** Sum of elements
@since NEXT_RELEASE *)
@since 0.11 *)
val sumf : float t -> float
(** Sum of elements, using Kahan summation
@since NEXT_RELEASE *)
@since 0.11 *)
val head : 'a t -> 'a option
(** 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
(** Similar to {!zip_i} but returns a normal sequence of tuples
@since NEXT_RELEASE *)
@since 0.11 *)
val to_opt : 'a t -> 'a option
(** Alias to {!head}