package codex

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Immutable_arraySource

Immutable array: array are created at creation time, and never modified after this. Actually uses Array.

Sourcetype 'a t
val length : 'a t -> int
val get : 'a t -> int -> 'a
val init : int -> (int -> 'a) -> 'a t
Sourceval empty : 'a t
Sourcetype sformat = (unit, Stdlib.Format.formatter, unit) Stdlib.format
Sourcetype 'a formatter = Stdlib.Format.formatter -> 'a -> unit
Sourceval pp_array : ?pre:sformat -> ?sep:sformat -> ?suf:sformat -> 'a formatter -> 'a t formatter
val iter : ('a -> unit) -> 'a t -> unit
val iter2 : ('a -> 'b -> unit) -> 'a t -> 'b t -> unit
Sourceval iter3 : ('a -> 'b -> 'c -> unit) -> 'a t -> 'b t -> 'c t -> unit
val iteri : (int -> 'a -> unit) -> 'a t -> unit
val map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
val mapi : (int -> 'a -> 'b) -> 'a t -> 'b t
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
Sourceval fold_left2 : ('a -> 'b -> 'c -> 'a) -> 'a -> 'b t -> 'c t -> 'a
Sourceval fold_left3 : ('a -> 'b -> 'c -> 'd -> 'a) -> 'a -> 'b t -> 'c t -> 'd t -> 'a
val map : ('a -> 'b) -> 'a t -> 'b t
val to_list : 'a t -> 'a list
val of_list : 'a list -> 'a t