mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
add @since tags
This commit is contained in:
parent
dbb4305017
commit
d2abd46d13
2 changed files with 8 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue