diff options
Diffstat (limited to 'stdlib/queue.mli')
-rw-r--r-- | stdlib/queue.mli | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/queue.mli b/stdlib/queue.mli index bd9879041..085cfb003 100644 --- a/stdlib/queue.mli +++ b/stdlib/queue.mli @@ -55,6 +55,9 @@ val clear : 'a t -> unit val copy : 'a t -> 'a t (** Return a copy of the given queue. *) +val is_empty : 'a t -> bool +(** Return [true] if the given queue is empty, [false] otherwise. *) + val length : 'a t -> int (** Return the number of elements in a queue. *) |