mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-01-28 11:54:51 -05:00
Added @since tags.
This commit is contained in:
parent
3ef3465156
commit
ec3c881939
3 changed files with 14 additions and 4 deletions
|
|
@ -67,8 +67,10 @@ val iter : (int -> 'a -> unit) -> 'a t -> unit
|
||||||
val fold : (int -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
|
val fold : (int -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
|
||||||
|
|
||||||
val mapi : (int -> 'a -> 'b) -> 'a t -> 'b t
|
val mapi : (int -> 'a -> 'b) -> 'a t -> 'b t
|
||||||
|
(** @since NEXT_RELEASE *)
|
||||||
|
|
||||||
val map : ('a -> 'b) -> 'a t -> 'b t
|
val map : ('a -> 'b) -> 'a t -> 'b t
|
||||||
|
(** @since NEXT_RELEASE *)
|
||||||
|
|
||||||
val choose : 'a t -> (int * 'a) option
|
val choose : 'a t -> (int * 'a) option
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,14 @@ module type S = sig
|
||||||
(** Fold on key/value bindings. Will use {!WORD.of_list} to rebuild keys. *)
|
(** Fold on key/value bindings. Will use {!WORD.of_list} to rebuild keys. *)
|
||||||
|
|
||||||
val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t
|
val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t
|
||||||
(** Map values, giving both key and value. Will use {!WORD.of_list} to rebuild keys. *)
|
(** Map values, giving both key and value. Will use {!WORD.of_list} to rebuild keys.
|
||||||
|
@since NEXT_RELEASE
|
||||||
|
*)
|
||||||
|
|
||||||
val map : ('a -> 'b) -> 'a t -> 'b t
|
val map : ('a -> 'b) -> 'a t -> 'b t
|
||||||
(** Map values, giving only the value. *)
|
(** Map values, giving only the value.
|
||||||
|
@since NEXT_RELEASE
|
||||||
|
*)
|
||||||
|
|
||||||
val iter : (key -> 'a -> unit) -> 'a t -> unit
|
val iter : (key -> 'a -> unit) -> 'a t -> unit
|
||||||
(** Same as {!fold}, but for effectful functions *)
|
(** Same as {!fold}, but for effectful functions *)
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,14 @@ module type S = sig
|
||||||
val fold : f:('b -> key -> 'a -> 'b) -> x:'b -> 'a t -> 'b
|
val fold : f:('b -> key -> 'a -> 'b) -> x:'b -> 'a t -> 'b
|
||||||
|
|
||||||
val mapi : f:(key -> 'a -> 'b) -> 'a t -> 'b t
|
val mapi : f:(key -> 'a -> 'b) -> 'a t -> 'b t
|
||||||
(** Map values, giving both key and value. Will use {!WORD.of_list} to rebuild keys. *)
|
(** Map values, giving both key and value. Will use {!WORD.of_list} to rebuild keys.
|
||||||
|
@since NEXT_RELEASE
|
||||||
|
*)
|
||||||
|
|
||||||
val map : f:('a -> 'b) -> 'a t -> 'b t
|
val map : f:('a -> 'b) -> 'a t -> 'b t
|
||||||
(** Map values, giving only the value. *)
|
(** Map values, giving only the value.
|
||||||
|
@since NEXT_RELEASE
|
||||||
|
*)
|
||||||
|
|
||||||
val iter : f:(key -> 'a -> unit) -> 'a t -> unit
|
val iter : f:(key -> 'a -> unit) -> 'a t -> unit
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue