src/Pure/net.ML
changeset 55741 b969263fcf02
parent 45404 69ec395ef6ca
child 56137 af71fb1cb31f
--- a/src/Pure/net.ML	Tue Feb 25 11:36:04 2014 +0100
+++ b/src/Pure/net.ML	Tue Feb 25 12:53:08 2014 +0100
@@ -20,6 +20,7 @@
   val encode_type: typ -> term
   type 'a net
   val empty: 'a net
+  val is_empty: 'a net -> bool
   exception INSERT
   val insert: ('a * 'a -> bool) -> key list * 'a -> 'a net -> 'a net
   val insert_term: ('a * 'a -> bool) -> term * 'a -> 'a net -> 'a net
@@ -251,7 +252,8 @@
       map (cons_fst VarK) (dest var) @
       maps (fn (a, net) => map (cons_fst (AtomK a)) (dest net)) (Symtab.dest atoms);
 
-fun merge eq (net1, net2) = fold (insert_safe eq) (dest net2) net1;
+fun merge eq (net1, net2) =
+  fold (insert_safe eq) (dest net2) net1;  (* FIXME non-standard merge order!?! *)
 
 fun content net = map #2 (dest net);