package sek

  1. Overview
  2. Docs
include module type of struct include S.Emulated.Array end

The submodule Array is a replacement for OCaml's standard Array module, where an array is implemented as an ephemeral sequence.

type 'a t = 'a S.E.t
type 'a array = 'a t
val length : 'a array -> int
val get : 'a array -> int -> 'a
val set : 'a array -> int -> 'a -> unit
val create_float : int -> float array
val append : 'a array -> 'a array -> '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 iter : ('a -> unit) -> 'a array -> unit
val iteri : (int -> 'a -> unit) -> 'a array -> unit
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 for_all2 : ('a -> 'b -> bool) -> 'a array -> 'b array -> bool
val exists2 : ('a -> 'b -> bool) -> 'a array -> 'b 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 make : int -> D.element -> D.element array
val init : int -> (int -> D.element) -> D.element array
val make_matrix : int -> int -> D.element -> D.element array array
val concat : D.element array list -> D.element array
val of_list : D.element list -> D.element array
val map : ('a -> D.element) -> 'a array -> D.element array
val mapi : (int -> 'a -> D.element) -> 'a array -> D.element array
val map2 : ('a -> 'b -> D.element) -> 'a array -> 'b array -> D.element array
val of_seq : D.element Seq.t -> D.element array
OCaml

Innovation. Community. Security.