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 *)