package extlib-compat

  1. Overview
  2. Docs
type 'a node_t
exception Empty
val create : 'a -> 'a node_t
val copy : 'a node_t -> 'a node_t
val length : 'a node_t -> int
val rev : 'a node_t -> unit
val add : 'a node_t -> 'a -> unit
val append : 'a node_t -> 'a -> 'a node_t
val prepend : 'a node_t -> 'a -> 'a node_t
val promote : 'a node_t -> unit
val demote : 'a node_t -> unit
val remove : 'a node_t -> unit
val drop : 'a node_t -> 'a node_t
val rev_drop : 'a node_t -> 'a node_t
val splice : 'a node_t -> 'a node_t -> unit
val get : 'a node_t -> 'a
val set : 'a node_t -> 'a -> unit
val next : 'a node_t -> 'a node_t
val prev : 'a node_t -> 'a node_t
val skip : 'a node_t -> int -> 'a node_t
val iter : ('a -> unit) -> 'a node_t -> unit
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b node_t -> 'a
val fold_right : ('a -> 'b -> 'b) -> 'a node_t -> 'b -> 'b
val map : ('a -> 'b) -> 'a node_t -> 'b node_t
val to_list : 'a node_t -> 'a list
val of_list : 'a list -> 'a node_t
val enum : 'a node_t -> 'a Enum.t
val rev_enum : 'a node_t -> 'a Enum.t
val of_enum : 'a Enum.t -> 'a node_t
OCaml

Innovation. Community. Security.