summaryrefslogtreecommitdiff
path: root/lib/gmap.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gmap.ml')
-rw-r--r--lib/gmap.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gmap.ml b/lib/gmap.ml
index 884305d9..7a4cb56e 100644
--- a/lib/gmap.ml
+++ b/lib/gmap.ml
@@ -5,7 +5,7 @@
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: gmap.ml 7925 2006-01-24 23:20:39Z herbelin $ *)
+(* $Id: gmap.ml 10250 2007-10-23 15:02:23Z aspiwack $ *)
(* Maps using the generic comparison function of ocaml. Code borrowed from
the ocaml standard library (Copyright 1996, INRIA). *)
@@ -16,6 +16,8 @@
let empty = Empty
+ let is_empty = function Empty -> true | _ -> false
+
let height = function
Empty -> 0
| Node(_,_,_,_,h) -> h