prepare for 0.18

This commit is contained in:
Simon Cruanes 2016-06-14 14:12:02 +02:00
parent 590d4108e8
commit 228011d9aa
10 changed files with 26 additions and 15 deletions

View file

@ -1,8 +1,19 @@
= Changelog = Changelog
== 0.18
- update implem of `CCVector.equal`
- add `CCOpt.get_or` with label, deprecates `get`
- add `CCArray.get_safe` (close #70)
- add `CCGraph.is_dag`
- add aliases to deprecated functions from `String`, add `Fun.opaque_identity`
- add `CCLazy_list.take`
- add `Lazy_list.filter`
- add CCList.range_by
== 0.17 == 0.17
=== potentially breaking === potentially breaking
- change the semantics of `CCString.find_all` (allow overlaps) - change the semantics of `CCString.find_all` (allow overlaps)

2
_oasis
View file

@ -1,6 +1,6 @@
OASISFormat: 0.4 OASISFormat: 0.4
Name: containers Name: containers
Version: 0.17 Version: 0.18
Homepage: https://github.com/c-cube/ocaml-containers Homepage: https://github.com/c-cube/ocaml-containers
Authors: Simon Cruanes Authors: Simon Cruanes
License: BSD-2-clause License: BSD-2-clause

View file

@ -24,7 +24,7 @@ module type S = sig
val get_safe : 'a t -> int -> 'a option val get_safe : 'a t -> int -> 'a option
(** [get_safe a i] returns [Some a.(i)] if [i] is a valid index (** [get_safe a i] returns [Some a.(i)] if [i] is a valid index
@since NEXT_RELEASE *) @since 0.18 *)
val set : 'a t -> int -> 'a -> unit val set : 'a t -> int -> 'a -> unit

View file

@ -26,7 +26,7 @@ module type S = sig
val get_safe : 'a t -> int -> 'a option val get_safe : 'a t -> int -> 'a option
(** [get_safe a i] returns [Some a.(i)] if [i] is a valid index (** [get_safe a i] returns [Some a.(i)] if [i] is a valid index
@since NEXT_RELEASE *) @since 0.18 *)
val set : 'a t -> int -> 'a -> unit val set : 'a t -> int -> 'a -> unit

View file

@ -69,7 +69,7 @@ val opaque_identity : 'a -> 'a
(** [opaque_identity x] is like [x], but prevents Flambda from using [x]'s (** [opaque_identity x] is like [x], but prevents Flambda from using [x]'s
definition for optimizing it (flambda is an optimization/inlining pass definition for optimizing it (flambda is an optimization/inlining pass
in OCaml >= 4.03). in OCaml >= 4.03).
@since NEXT_RELEASE *) @since 0.18 *)
(** {2 Monad} (** {2 Monad}

View file

@ -280,7 +280,7 @@ val range_by : step:int -> int -> int -> int t
where the difference between successive elements is [step]. where the difference between successive elements is [step].
use a negative [step] for a decreasing list. use a negative [step] for a decreasing list.
@raise Invalid_argument if [step=0] @raise Invalid_argument if [step=0]
@since NEXT_RELEASE *) @since 0.18 *)
val range : int -> int -> int t val range : int -> int -> int t
(** [range i j] iterates on integers from [i] to [j] included . It works (** [range i j] iterates on integers from [i] to [j] included . It works

View file

@ -63,12 +63,12 @@ val for_all : ('a -> bool) -> 'a t -> bool
val get : 'a -> 'a t -> 'a val get : 'a -> 'a t -> 'a
(** [get default x] unwraps [x], but if [x = None] it returns [default] instead. (** [get default x] unwraps [x], but if [x = None] it returns [default] instead.
@since 0.4.1 @since 0.4.1
@deprecated use {!get_or} @since NEXT_RELEASE *) @deprecated use {!get_or} @since 0.18 *)
val get_or : default:'a -> 'a t -> 'a val get_or : default:'a -> 'a t -> 'a
(** [get_or ~default o] extracts the value from [o], or (** [get_or ~default o] extracts the value from [o], or
returns [default] if [o = None]. returns [default] if [o = None].
@since NEXT_RELEASE *) @since 0.18 *)
val get_exn : 'a t -> 'a val get_exn : 'a t -> 'a
(** Open the option, possibly failing if it is [None] (** Open the option, possibly failing if it is [None]

View file

@ -384,16 +384,16 @@ val exists2 : (char -> char -> bool) -> string -> string -> bool
a stable alias for them even in older versions *) a stable alias for them even in older versions *)
val capitalize_ascii : string -> string val capitalize_ascii : string -> string
(** See {!String}. @since NEXT_RELEASE *) (** See {!String}. @since 0.18 *)
val uncapitalize_ascii : string -> string val uncapitalize_ascii : string -> string
(** See {!String}. @since NEXT_RELEASE *) (** See {!String}. @since 0.18 *)
val uppercase_ascii : string -> string val uppercase_ascii : string -> string
(** See {!String}. @since NEXT_RELEASE *) (** See {!String}. @since 0.18 *)
val lowercase_ascii : string -> string val lowercase_ascii : string -> string
(** See {!String}. @since NEXT_RELEASE *) (** See {!String}. @since 0.18 *)
(** {2 Splitting} *) (** {2 Splitting} *)

View file

@ -233,7 +233,7 @@ val is_dag :
bool bool
(** [is_dag ~graph vs] returns [true] if the subset of [graph] reachable (** [is_dag ~graph vs] returns [true] if the subset of [graph] reachable
from [vs] is acyclic. from [vs] is acyclic.
@since NEXT_RELEASE *) @since 0.18 *)
(** {2 Topological Sort} *) (** {2 Topological Sort} *)

View file

@ -33,11 +33,11 @@ val map : f:('a -> 'b) -> 'a t -> 'b t
val filter : f:('a -> bool) -> 'a t -> 'a t val filter : f:('a -> bool) -> 'a t -> 'a t
(** Filter values. (** Filter values.
@since NEXT_RELEASE *) @since 0.18 *)
val take : int -> 'a t -> 'a t val take : int -> 'a t -> 'a t
(** Take at most n values. (** Take at most n values.
@since NEXT_RELEASE *) @since 0.18 *)
val append : 'a t -> 'a t -> 'a t val append : 'a t -> 'a t -> 'a t
(** Lazy concatenation *) (** Lazy concatenation *)