package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a sequence = ('a -> unit) -> unit
type !'a klist = unit -> [ `Cons of 'a * 'a klist | `Nil ]
type !'a equal = 'a -> 'a -> bool
type +'a t
val empty : 'a t
val is_empty : 'a t -> bool
val singleton : 'a -> 'a t
val doubleton : 'a -> 'a -> 'a t
exception Empty
val cons : 'a -> 'a t -> 'a t
val snoc : 'a t -> 'a -> 'a t
val take_front : 'a t -> ('a * 'a t) option
val take_front_exn : 'a t -> 'a * 'a t
val take_front_l : int -> 'a t -> 'a list * 'a t
val take_front_while : ('a -> bool) -> 'a t -> 'a list * 'a t
val take_back : 'a t -> ('a t * 'a) option
val take_back_exn : 'a t -> 'a t * 'a
val take_back_l : int -> 'a t -> 'a t * 'a list
val take_back_while : ('a -> bool) -> 'a t -> 'a t * 'a list
val first : 'a t -> 'a option
val last : 'a t -> 'a option
val first_exn : 'a t -> 'a
val last_exn : 'a t -> 'a
val nth : int -> 'a t -> 'a option
val nth_exn : int -> 'a t -> 'a
val tail : 'a t -> 'a t
val init : 'a t -> 'a t
val append : 'a t -> 'a t -> 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
val (>|=) : 'a t -> ('a -> 'b) -> 'b t
val size : 'a t -> int
val fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b
val iter : ('a -> unit) -> 'a t -> unit
val equal : 'a equal -> 'a t equal
val of_list : 'a list -> 'a t
val to_list : 'a t -> 'a list
val add_seq_front : 'a sequence -> 'a t -> 'a t
val add_seq_back : 'a t -> 'a sequence -> 'a t
val to_seq : 'a t -> 'a sequence
val of_seq : 'a sequence -> 'a t
val to_klist : 'a t -> 'a klist
val of_klist : 'a klist -> 'a t
OCaml

Innovation. Community. Security.