From d2abd46d13917e552589aaf21b081261dfb6f9cc Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Fri, 8 Aug 2014 19:24:25 +0200 Subject: [PATCH] add @since tags --- core/CCArray.mli | 6 ++++-- core/CCList.mli | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/core/CCArray.mli b/core/CCArray.mli index ab975073..78a0e40b 100644 --- a/core/CCArray.mli +++ b/core/CCArray.mli @@ -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. diff --git a/core/CCList.mli b/core/CCList.mli index f3c5f7af..9f5115d8 100644 --- a/core/CCList.mli +++ b/core/CCList.mli @@ -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 *)