package extlib

  1. Overview
  2. Docs
exception Empty_list
exception Invalid_index of int
type 'a t
val empty : unit -> 'a t
val is_empty : 'a t -> bool
val clear : 'a t -> unit
val length : 'a t -> int
val copy : dst:'a t -> src:'a t -> unit
val copy_list : dst:'a t -> src:'a list -> unit
val copy_enum : dst:'a t -> src:'a Enum.t -> unit
val of_list : 'a list -> 'a t
val to_list : 'a t -> 'a list
val of_enum : 'a Enum.t -> 'a t
val enum : 'a t -> 'a Enum.t
val add : 'a t -> 'a -> unit
val push : 'a t -> 'a -> unit
val add_sort : ?cmp:('a -> 'a -> int) -> 'a t -> 'a -> unit
val first : 'a t -> 'a
val last : 'a t -> 'a
val pop : 'a t -> 'a
val npop : 'a t -> int -> 'a list
val hd : 'a t -> 'a
val tl : 'a t -> 'a t
val rev : 'a t -> unit
val iter : ('a -> unit) -> 'a t -> unit
val find : ('a -> bool) -> 'a t -> 'a
val rfind : ('a -> bool) -> 'a t -> 'a
val find_exc : ('a -> bool) -> exn -> 'a t -> 'a
val exists : ('a -> bool) -> 'a t -> bool
val for_all : ('a -> bool) -> 'a t -> bool
val map : ('a -> 'b) -> 'a t -> 'b t
val transform : ('a -> 'a) -> 'a t -> unit
val map_list : ('a -> 'b) -> 'a t -> 'b list
val sort : ?cmp:('a -> 'a -> int) -> 'a t -> unit
val filter : ('a -> bool) -> 'a t -> unit
val remove : 'a t -> 'a -> unit
val remove_if : ('a -> bool) -> 'a t -> unit
val remove_all : 'a t -> 'a -> unit
module Index : sig ... end
OCaml

Innovation. Community. Security.