add @since tags

This commit is contained in:
Simon Cruanes 2014-08-08 19:24:25 +02:00
parent dbb4305017
commit d2abd46d13
2 changed files with 8 additions and 4 deletions

View file

@ -71,11 +71,13 @@ module type S = sig
that [f x = Some y], else it returns [None] *)
val findi : (int -> 'a -> 'b option) -> 'a t -> 'b option
(** Like {!find}, but also pass the index to the predicate function. *)
(** Like {!find}, but also pass the index to the predicate function.
@since NEXT_RELEASE *)
val find_idx : ('a -> bool) -> 'a t -> (int * 'a) option
(** [find p x] returns [Some (i,x)] where [x] is the [i]-th element of [l],
and [p x] holds. Otherwise returns [None] *)
and [p x] holds. Otherwise returns [None]
@since NEXT_RELEASE *)
val lookup : ?cmp:'a ord -> 'a -> 'a t -> int option
(** Lookup the index of some value in a sorted array.

View file

@ -94,11 +94,13 @@ val find : ('a -> 'b option) -> 'a t -> 'b option
the call returns [None] *)
val findi : (int -> 'a -> 'b option) -> 'a t -> 'b option
(** Like {!find}, but also pass the index to the predicate function. *)
(** Like {!find}, but also pass the index to the predicate function.
@since NEXT_RELEASE *)
val find_idx : ('a -> bool) -> 'a t -> (int * 'a) option
(** [find p x] returns [Some (i,x)] where [x] is the [i]-th element of [l],
and [p x] holds. Otherwise returns [None] *)
and [p x] holds. Otherwise returns [None]
@since NEXT_RELEASE *)
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
(** Map and remove elements at the same time *)