Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A double ended queue. Insert from both ends, pop only from the front.
val is_empty : _ t -> bool
is_empty q
Is the queue q
empty?
val has_some : _ t -> bool
has_some q
Does the queue have elements?
val empty : _ t
empty
The empty queue.
update_first f q
Update the first element of the queue q
with the update function f
.
update_last f q
Update the last element of the queue q
with the update function f
.
val to_list : 'a t -> 'a list
to_list q
Convert the queue q
to a list.