package oml

  1. Overview
  2. Docs
type !'a t = 'a array
val length : 'a array -> int
val get : 'a array -> int -> 'a
val set : 'a array -> int -> 'a -> unit
val make : int -> 'a -> 'a array
val create : int -> 'a -> 'a array
  • deprecated Use Array.make instead.
val create_float : int -> float array
val make_float : int -> float array
  • deprecated Use Array.create_float instead.
val init : int -> (int -> 'a) -> 'a array
val make_matrix : int -> int -> 'a -> 'a array array
val create_matrix : int -> int -> 'a -> 'a array array
  • deprecated Use Array.make_matrix instead.
val append : 'a array -> 'a array -> 'a array
val concat : 'a array list -> 'a array
val sub : 'a array -> int -> int -> 'a array
val copy : 'a array -> 'a array
val fill : 'a array -> int -> int -> 'a -> unit
val blit : 'a array -> int -> 'a array -> int -> int -> unit
val to_list : 'a array -> 'a list
val of_list : 'a list -> 'a array
val iter : ('a -> unit) -> 'a array -> unit
val iteri : (int -> 'a -> unit) -> 'a array -> unit
val map : ('a -> 'b) -> 'a array -> 'b array
val mapi : (int -> 'a -> 'b) -> 'a array -> 'b array
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b array -> 'a
val fold_right : ('b -> 'a -> 'a) -> 'b array -> 'a -> 'a
val iter2 : ('a -> 'b -> unit) -> 'a array -> 'b array -> unit
val for_all : ('a -> bool) -> 'a array -> bool
val exists : ('a -> bool) -> 'a array -> bool
val mem : 'a -> 'a array -> bool
val memq : 'a -> 'a array -> bool
val sort : ('a -> 'a -> int) -> 'a array -> unit
val stable_sort : ('a -> 'a -> int) -> 'a array -> unit
val fast_sort : ('a -> 'a -> int) -> 'a array -> unit
val to_seq : 'a array -> 'a Seq.t
val to_seqi : 'a array -> (int * 'a) Seq.t
val of_seq : 'a Seq.t -> 'a array
val unsafe_get : 'a array -> int -> 'a
val unsafe_set : 'a array -> int -> 'a -> unit
module Floatarray : sig ... end
val fold2 : ('a -> 'b -> 'c -> 'a) -> 'a -> 'b array -> 'c array -> 'a
val map2 : ('a -> 'b -> 'c) -> 'a array -> 'b array -> 'c array
val sumf : float array -> float
val prodf : float array -> float
val max : 'a array -> 'a
val min : 'a array -> 'a
val find_index : ('a -> bool) -> 'a array -> int
val binary_search_exn : ('a -> int) -> 'a array -> int
val all : ('a -> bool) -> 'a array -> bool
val any : ('a -> bool) -> 'a array -> bool
val has_order : ('a -> 'a -> bool) -> 'a array -> bool
val range : ?incr:float -> start:float -> stop:float -> unit -> float array
val ranks : ?start:int -> ?average_ties:bool -> ?compare:(float -> float -> int) -> float array -> float array
val zip : 'a array -> 'b array -> ('a * 'b) array
val unzip : ('a * 'b) array -> 'a array * 'b array
val permute : ?copy:bool -> 'a array -> 'a array
OCaml

Innovation. Community. Security.