Eta-expansion of a function definition, for value polymorphism
authorpaulson
Tue, 26 Nov 1996 16:33:59 +0100
changeset 2231 71385461570a
parent 2230 275a5a699ff7
child 2232 d2a9c34845a2
Eta-expansion of a function definition, for value polymorphism
src/Pure/Thy/thy_parse.ML
--- a/src/Pure/Thy/thy_parse.ML	Tue Nov 26 16:29:30 1996 +0100
+++ b/src/Pure/Thy/thy_parse.ML	Tue Nov 26 16:33:59 1996 +0100
@@ -149,8 +149,8 @@
 fun enum1 sep parse = parse -- repeat (sep $$-- parse) >> op ::;
 fun enum sep parse = enum1 sep parse || empty;
 
-val list = enum ",";
-val list1 = enum1 ",";
+fun list  parse = enum  "," parse;
+fun list1 parse = enum1 "," parse;
 
 
 (** theory parsers **)
@@ -170,7 +170,7 @@
 fun mk_triple1 ((x, y), z) = mk_triple (x, y, z);
 fun mk_triple2 (x, (y, z)) = mk_triple (x, y, z);
 
-val split_decls = flat o map (fn (xs, y) => map (rpair y) xs);
+fun split_decls l = flat (map (fn (xs, y) => map (rpair y) xs) l);
 
 fun strip_quotes str =
   implode (tl (take (size str - 1, explode str)));