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