Cap.Labels
Operations on BatArray.Cap
with labels.
val init : int -> f:(int -> 'a) -> ('a, _) t
val make : int -> init:'a -> ('a, _) t
val create : int -> init:'a -> ('a, _) t
val fill : ('a, [> `Write ]) t -> pos:int -> len:int -> 'a -> unit
val iter : f:('a -> unit) -> ('a, [> `Read ]) t -> unit
val iteri : f:(int -> 'a -> unit) -> ('a, [> `Read ]) t -> unit
val modify : f:('a -> 'a) -> ('a, [ `Read | `Write ]) t -> unit
val modifyi : f:(int -> 'a -> 'a) -> ('a, [ `Read | `Write ]) t -> unit
val fold_left : f:('a -> 'b -> 'a) -> init:'a -> ('b, [> `Read ]) t -> 'a
val fold : f:('a -> 'b -> 'a) -> init:'a -> ('b, [> `Read ]) t -> 'a
val fold_right : f:('b -> 'a -> 'a) -> ('b, [> `Read ]) t -> init:'a -> 'a
val sort : cmp:('a -> 'a -> int) -> ('a, [> `Read | `Write ]) t -> unit
val stable_sort : cmp:('a -> 'a -> int) -> ('a, [ `Read | `Write ]) t -> unit
val fast_sort : cmp:('a -> 'a -> int) -> ('a, [ `Read | `Write ]) t -> unit
val exists : f:('a -> bool) -> ('a, [> `Read ]) t -> bool
val for_all : f:('a -> bool) -> ('a, [> `Read ]) t -> bool
val find : f:('a -> bool) -> ('a, [> `Read ]) t -> 'a
val count_matching : f:('a -> bool) -> ('a, [> `Read ]) t -> int