package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val init : int -> f:(int -> 'a) -> ('a, [< `Read | `Write ]) t
val make : int -> init:'a -> ('a, [< `Read | `Write ]) t
val create : int -> init:'a -> ('a, [< `Read | `Write ]) t
val make_matrix : dimx:int -> dimy:int -> 'a -> (('a, [< `Read | `Write ]) t, [< `Read | `Write ]) t
val create_matrix : dimx:int -> dimy:int -> 'a -> (('a, [< `Read | `Write ]) t, [< `Read | `Write ]) t
val sub : ('a, [< `Read | `Write Read ]) t -> pos:int -> len:int -> ('a, [< `Read | `Write ]) t
val fill : ('a, [< `Read | `Write Write ]) t -> pos:int -> len:int -> 'a -> unit
val blit : src:('a, [< `Read | `Write Read ]) t -> src_pos:int -> dst:('a, [< `Read | `Write Write ]) t -> dst_pos:int -> len:int -> unit
val iter : f:('a -> unit) -> ('a, [< `Read | `Write Read ]) t -> unit
val iteri : f:(int -> 'a -> unit) -> ('a, [< `Read | `Write 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 | `Write Read ]) t -> 'a
val fold_right : f:('b -> 'a -> 'a) -> ('b, [< `Read | `Write 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 iter2 : f:('a -> 'b -> unit) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write Read ]) t -> unit
val iter2i : f:(int -> 'a -> 'b -> unit) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write Read ]) t -> unit
val exists : f:('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> bool
val for_all : f:('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> bool
val find : f:('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> 'a
val map : f:('a -> 'b) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write ]) t
val mapi : f:(int -> 'a -> 'b) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write ]) t
val filter : f:('a -> bool) -> ('a, [< `Read | `Write Read ]) t -> ('a, [< `Read | `Write ]) t
val filter_map : f:('a -> 'b option) -> ('a, [< `Read | `Write Read ]) t -> ('b, [< `Read | `Write ]) t
OCaml

Innovation. Community. Security.