package liquidsoap-lang

  1. Overview
  2. Docs
type 'a t
val create : unit -> 'a t
val is_empty : 'a t -> bool
val push : 'a t -> 'a -> unit
val pop : 'a t -> 'a

Raises Not_found when no element can be found.

val pop_opt : 'a t -> 'a option
val peek : 'a t -> 'a

Raises Not_found when no element can be found.

val peek_opt : 'a t -> 'a option
val flush_iter : 'a t -> ('a -> unit) -> unit
val flush_fold : 'a t -> ('a -> 'b -> 'b) -> 'b -> 'b
val flush_elements : 'a t -> 'a list
val elements : 'a t -> 'a list
val exists : 'a t -> ('a -> bool) -> bool
val iter : 'a t -> ('a -> unit) -> unit
val fold : 'a t -> ('a -> 'b -> 'b) -> 'b -> 'b
val length : 'a t -> int
val filter : 'a t -> ('a -> bool) -> unit
OCaml

Innovation. Community. Security.