package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ('a, 'b) t = ('a, 'b) BatArray.Cap.t constraint 'b = [< `Read | `Write ]
val length : ('a, [< `Read | `Write ]) t -> int
val get : ('a, [< `Read | `Write Read ]) t -> int -> 'a
val set : ('a, [< `Read | `Write Write ]) t -> int -> 'a -> unit
val make : int -> 'a -> ('a, [< `Read | `Write ]) t
val create : int -> 'a -> ('a, [< `Read | `Write ]) t
val make_float : int -> (float, [< `Read | `Write ]) t
val of_array : 'a array -> ('a, [< `Read | `Write ]) t
val to_array : ('a, [ `Read | `Write ]) t -> 'a array
val read_only : ('a, [< `Read | `Write Read ]) t -> ('a, [ `Read ]) t
val write_only : ('a, [< `Read | `Write Write ]) t -> ('a, [ `Write ]) t
val init : int -> (int -> 'a) -> ('a, [< `Read | `Write ]) t
val make_matrix : int -> int -> 'a -> (('a, [< `Read | `Write ]) t, [< `Read | `Write ]) t
val create_matrix : int -> int -> 'a -> (('a, [< `Read | `Write ]) t, [< `Read | `Write ]) t
val iter : ('a -> unit) -> ('a, [< `Read | `Write Read ]) t -> unit
val map : ('a -> 'b) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write ]) t
val iteri : (int -> 'a -> unit) -> ('a, [< `Read | `Write Read ]) t -> unit
val mapi : (int -> 'a -> 'b) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write ]) t
val modify : ('a -> 'a) -> ('a, [ `Read | `Write ]) t -> unit
val modifyi : (int -> 'a -> 'a) -> ('a, [ `Read | `Write ]) t -> unit
val fold_left : ('a -> 'b -> 'a) -> 'a -> ('b, [< `Read | `Write Read ]) t -> 'a
val fold_right : ('b -> 'a -> 'a) -> ('b, [< `Read | `Write Read ]) t -> 'a -> 'a
val iter2 : ('a -> 'b -> unit) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write Read ]) t -> unit
val iter2i : (int -> 'a -> 'b -> unit) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write Read ]) t -> unit
val for_all : ('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> bool
val exists : ('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> bool
val mem : 'a -> ('a, [< `Read | `Write Read ]) t -> bool
val memq : 'a -> ('a, [< `Read | `Write Read ]) t -> bool
val filter : ('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> ('a, [< `Read | `Write ]) t
val filter_map : ('a -> 'b option) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write ]) t
val find_all : ('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> ('a, [< `Read | `Write ]) t
val partition : ('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> ('a, [< `Read | `Write ]) t * ('a, [< `Read | `Write ]) t
val rev : ('a, [< `Read | `Write Read ]) t -> ('a, [< `Read | `Write ]) t
val rev_in_place : ('a, [ `Read | `Write ]) t -> unit
val append : ('a, [< `Read | `Write Read ]) t -> ('a, [< `Read | `Write Read ]) t -> ('a, [< `Read | `Write ]) t
val concat : ('a, [< `Read | `Write Read ]) t list -> ('a, [< `Read | `Write ]) t
val sub : ('a, [< `Read | `Write Read ]) t -> int -> int -> ('a, [< `Read | `Write ]) t
val copy : ('a, [< `Read | `Write Read ]) t -> 'a array
val fill : ('a, [< `Read | `Write Write ]) t -> int -> int -> 'a -> unit
val blit : ('a, [< `Read | `Write Read ]) t -> int -> ('a, [< `Read | `Write Write ]) t -> int -> int -> unit
val enum : ('a, [< `Read | `Write Read ]) t -> 'a BatEnum.t
val of_enum : 'a BatEnum.t -> ('a, [< `Read | `Write ]) t
val backwards : ('a, [< `Read | `Write Read ]) t -> 'a BatEnum.t
val of_backwards : 'a BatEnum.t -> ('a, [< `Read | `Write ]) t
val to_list : ('a, [< `Read | `Write Read ]) t -> 'a list
val of_list : 'a list -> ('a, [< `Read | `Write ]) t
val sort : ('a -> 'a -> int) -> ('a, [ `Read | `Write ]) t -> unit
val stable_sort : ('a -> 'a -> int) -> ('a, [ `Read | `Write ]) t -> unit
val fast_sort : ('a -> 'a -> int) -> ('a, [ `Read | `Write ]) t -> unit
val print : ?first:string -> ?last:string -> ?sep:string -> ('a BatIO.output -> 'b -> unit) -> 'a BatIO.output -> ('b, [< `Read | `Write Read ]) t -> unit
val compare : 'a BatOrd.comp -> ('a, [< `Read | `Write Read ]) t BatOrd.comp
val ord : 'a BatOrd.ord -> ('a, [< `Read | `Write Read ]) t BatOrd.ord
val equal : 'a BatOrd.eq -> ('a, [< `Read | `Write Read ]) t BatOrd.eq
module Exceptionless = BatArray.Cap.Exceptionless
module Labels = BatArray.Cap.Labels
val unsafe_get : ('a, [< `Read | `Write Read ]) t -> int -> 'a
val unsafe_set : ('a, [< `Read | `Write Write ]) t -> int -> 'a -> unit
val find : ('a -> bool) -> ('a, [< `Read | `Write Read ]) BatArray.Cap.t -> 'a option
val findi : ('a -> bool) -> ('a, [< `Read | `Write Read ]) BatArray.Cap.t -> int option
OCaml

Innovation. Community. Security.