Array.Labels
include module type of struct include BatArray.Labels end
Operations on Array
with labels.
This module overrides a number of functions of Array
by functions in which some arguments require labels. These labels are there to improve readability and safety and to let you change the order of arguments to functions. In every case, the behavior of the function is identical to that of the corresponding function of Array
.
val iter2 : f:('a -> 'b -> unit) -> 'a BatArray.t -> 'b BatArray.t -> unit
val exists : f:('a -> bool) -> 'a BatArray.t -> bool
val for_all : f:('a -> bool) -> 'a BatArray.t -> bool
val iter2i : f:(int -> 'a -> 'b -> unit) -> 'a BatArray.t -> 'b BatArray.t -> unit
val map : f:('a -> 'b) -> 'a BatArray.t -> 'b BatArray.t
val mapi : f:(int -> 'a -> 'b) -> 'a BatArray.t -> 'b BatArray.t
val filter : f:('a -> bool) -> 'a BatArray.t -> 'a BatArray.t
val filter_map : f:('a -> 'b option) -> 'a BatArray.t -> 'b BatArray.t
val count_matching : f:('a -> bool) -> 'a BatArray.t -> int
module LExceptionless = BatArray.Labels.LExceptionless
include module type of struct include BatArray.Labels.LExceptionless end
val find : f:('a -> bool) -> 'a BatArray.t -> 'a option
val findi : f:('a -> bool) -> 'a BatArray.t -> int option