(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* 'a t -> 'a t (** Pushes an element on the left side of the deque. *) val lhd : 'a t -> 'a (** Returns the leftmost element in the deque. Raises [Empty] when empty. *) val ltl : 'a t -> 'a t (** Returns the left-tail of the deque. Raises [Empty] when empty. *) (** {5 Right-side operations} *) val rcons : 'a -> 'a t -> 'a t (** Same as [lcons] but on the right side. *) val rhd : 'a t -> 'a (** Same as [lhd] but on the right side. *) val rtl : 'a t -> 'a t (** Same as [ltl] but on the right side. *) (** {5 Operations} *) val rev : 'a t -> 'a t (** Reverse deque. *) val length : 'a t -> int (** Length of a deque. *) val is_empty : 'a t -> bool (** Emptyness of a deque. *) val filter : ('a -> bool) -> 'a t -> 'a t (** Filters the deque *)