Changed some mem calls to mem_string for greater efficiency (not that it could matter)
authorpaulson
Wed, 30 Oct 1996 11:19:09 +0100
changeset 2138 056dead45ae8
parent 2137 afc15c2fd5b5
child 2139 2c59b204b540
Changed some mem calls to mem_string for greater efficiency (not that it could matter)
src/Pure/sign.ML
src/Pure/term.ML
--- a/src/Pure/sign.ML	Wed Oct 30 11:17:54 1996 +0100
+++ b/src/Pure/sign.ML	Wed Oct 30 11:19:09 1996 +0100
@@ -184,13 +184,13 @@
 (** pretty printing of terms and types **)
 
 fun pretty_term (Sg {syn, stamps, ...}) =
-  let val curried = "CPure" mem (map ! stamps);
+  let val curried = "CPure" mem_string (map ! stamps);
   in Syntax.pretty_term curried syn end;
 
 fun pretty_typ (Sg {syn, ...}) = Syntax.pretty_typ syn;
 
 fun string_of_term (Sg {syn, stamps, ...}) =
-  let val curried = "CPure" mem (map ! stamps);
+  let val curried = "CPure" mem_string (map ! stamps);
   in Syntax.string_of_term curried syn end;
 
 fun string_of_typ (Sg {syn, ...}) = Syntax.string_of_typ syn;
--- a/src/Pure/term.ML	Wed Oct 30 11:17:54 1996 +0100
+++ b/src/Pure/term.ML	Wed Oct 30 11:19:09 1996 +0100
@@ -472,8 +472,8 @@
 (*Makes a variant of the name c distinct from the names in bs.
   First attaches the suffix "a" and then increments this. *)
 fun variant bs c : string =
-  let fun vary2 c = if (c mem bs) then  vary2 (bump_string c)  else  c
-      fun vary1 c = if (c mem bs) then  vary2 (c ^ "a")  else  c
+  let fun vary2 c = if (c mem_string bs) then  vary2 (bump_string c)  else  c
+      fun vary1 c = if (c mem_string bs) then  vary2 (c ^ "a")  else  c
   in  vary1 (if c="" then "u" else c)  end;
 
 (*Create variants of the list of names, with priority to the first ones*)