mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
fix: add since tag for Array.map_inplace
This commit is contained in:
parent
8a71b1dcaa
commit
70703b3512
2 changed files with 4 additions and 2 deletions
|
|
@ -59,7 +59,8 @@ val get_safe : 'a t -> int -> 'a option
|
||||||
@since 0.18 *)
|
@since 0.18 *)
|
||||||
|
|
||||||
val map_inplace : ('a -> 'a) -> 'a t -> unit
|
val map_inplace : ('a -> 'a) -> 'a t -> unit
|
||||||
(** [map_inplace f a] replace all elements of [a] by its image by [f]. *)
|
(** [map_inplace f a] replace all elements of [a] by its image by [f].
|
||||||
|
@since NEXT_RELEASE *)
|
||||||
|
|
||||||
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
|
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
|
||||||
(** [fold f init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
|
(** [fold f init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,8 @@ val get_safe : 'a t -> int -> 'a option
|
||||||
@since 0.18 *)
|
@since 0.18 *)
|
||||||
|
|
||||||
val map_inplace : f:('a -> 'a) -> 'a t -> unit
|
val map_inplace : f:('a -> 'a) -> 'a t -> unit
|
||||||
(** [map_inplace ~f a] replace all elements of [a] by its image by [f]. *)
|
(** [map_inplace ~f a] replace all elements of [a] by its image by [f].
|
||||||
|
@since NEXT_RELEASE *)
|
||||||
|
|
||||||
val fold : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a
|
val fold : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a
|
||||||
(** [fold ~f ~init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
|
(** [fold ~f ~init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue