mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
CCArray: add @since
This commit is contained in:
parent
4267210da9
commit
789eee9d53
2 changed files with 6 additions and 2 deletions
|
|
@ -133,7 +133,9 @@ val sort_ranking : ('a -> 'a -> int) -> 'a t -> int array
|
||||||
@since 1.0 *)
|
@since 1.0 *)
|
||||||
|
|
||||||
val mem : ?eq:('a -> 'a -> bool) -> 'a -> 'a t -> bool
|
val mem : ?eq:('a -> 'a -> bool) -> 'a -> 'a t -> bool
|
||||||
(** [mem ~eq x a] return true if x is present in [a]. Linear time. *)
|
(** [mem ~eq x a] return true if x is present in [a]. Linear time.
|
||||||
|
@since NEXT_RELEASE
|
||||||
|
*)
|
||||||
|
|
||||||
val find_map : ('a -> 'b option) -> 'a t -> 'b option
|
val find_map : ('a -> 'b option) -> 'a t -> 'b option
|
||||||
(** [find_map f a] returns [Some y] if there is an element [x] such
|
(** [find_map f a] returns [Some y] if there is an element [x] such
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,9 @@ val sort_ranking : f:('a -> 'a -> int) -> 'a t -> int array
|
||||||
@since 1.0 *)
|
@since 1.0 *)
|
||||||
|
|
||||||
val mem : ?eq:('a -> 'a -> bool) -> 'a -> 'a t -> bool
|
val mem : ?eq:('a -> 'a -> bool) -> 'a -> 'a t -> bool
|
||||||
(** [mem ~eq x a] return true if x is present in [a]. Linear time. *)
|
(** [mem ~eq x a] return true if x is present in [a]. Linear time.
|
||||||
|
@since NEXT_RELEASE
|
||||||
|
*)
|
||||||
|
|
||||||
val find_map : f:('a -> 'b option) -> 'a t -> 'b option
|
val find_map : f:('a -> 'b option) -> 'a t -> 'b option
|
||||||
(** [find_map ~f a] returns [Some y] if there is an element [x] such
|
(** [find_map ~f a] returns [Some y] if there is an element [x] such
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue