tuned concat_with_and;
authorwenzelm
Wed, 13 Jul 2005 16:07:22 +0200
changeset 16801 4bb13fa6ae72
parent 16800 90eff1b52428
child 16802 6eeee59dac4c
tuned concat_with_and; improved Net interface;
src/HOL/Tools/meson.ML
--- a/src/HOL/Tools/meson.ML	Wed Jul 13 16:07:21 2005 +0200
+++ b/src/HOL/Tools/meson.ML	Wed Jul 13 16:07:22 2005 +0200
@@ -86,9 +86,7 @@
   in  has  end;
 
 (* for tracing: encloses each string element in brackets. *)
-fun concat_with_and [] = ""
-  | concat_with_and [x] = "(" ^ x ^ ")"
-  | concat_with_and (x::xs) = "(" ^ x ^ ")" ^ " & " ^ concat_with_and xs;
+val concat_with_and = space_implode " & " o map (enclose "(" ")");
 
 
 (**** Clause handling ****)
@@ -288,7 +286,7 @@
 (** Detecting repeated assumptions in a subgoal **)
 
 (*The stringtree detects repeated assumptions.*)
-fun ins_term (net,t) = Net.insert_term((t,t), net, op aconv);
+fun ins_term (net,t) = Net.insert_term (op aconv) (t,t) net;
 
 (*detects repetitions in a list of terms*)
 fun has_reps [] = false