diff options
| author | Xavier Leroy <xavier.leroy@inria.fr> | 2002-06-27 08:48:26 +0000 |
|---|---|---|
| committer | Xavier Leroy <xavier.leroy@inria.fr> | 2002-06-27 08:48:26 +0000 |
| commit | 26fb2b92acf70e43f71baa77d1c0d595ab71b143 (patch) | |
| tree | 18f0271782d148b07fcda405a8e48e807763d7df /stdlib/queue.ml | |
| parent | 4a5afb7ff30426a552e7193f768c06ad33306300 (diff) | |
| download | ocaml-26fb2b92acf70e43f71baa77d1c0d595ab71b143.tar.gz | |
Ajout operation is_empty
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4956 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/queue.ml')
| -rw-r--r-- | stdlib/queue.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/queue.ml b/stdlib/queue.ml index 477afcb088..5a08721f55 100644 --- a/stdlib/queue.ml +++ b/stdlib/queue.ml @@ -123,6 +123,9 @@ let copy q = tail = tail' } +let is_empty q = + q.length = 0 + let length q = q.length |
