package pa_ppx

  1. Overview
  2. Docs
type 'a t
type 'a init_t = unit
val mk : 'a init_t -> 'a t
val front : 'a t -> 'a option * 'a t
val shift : 'a t -> 'a * 'a t
val pop_front : 'a t -> 'a * 'a t
val unshift : 'a -> 'a t -> 'a t
val push_front : 'a -> 'a t -> 'a t
val back : 'a t -> 'a t * 'a option
val pop : 'a t -> 'a t * 'a
val push : 'a t -> 'a -> 'a t
val pop_back : 'a t -> 'a t * 'a
val push_back : 'a t -> 'a -> 'a t
val empty : 'a t -> bool
val clear : 'a t -> 'a t
val toList : 'a t -> 'a list
val ofList : 'a list -> 'a init_t -> 'a t
val first : 'a t -> 'a
val last : 'a t -> 'a
val for_all : ('a -> bool) -> 'a t -> bool
val exists : ('a -> bool) -> 'a t -> bool
val app : ('a -> unit) -> 'a t -> unit
OCaml

Innovation. Community. Security.