avoiding apply

This commit is contained in:
Danny Yoo 2012-02-17 14:57:23 -05:00
parent 872d72ed2b
commit d0bc25c83a

View File

@ -74,7 +74,11 @@
",")))]
[(InstallClosureValues!? op)
"M.e.push.apply(M.e,M.p.closedVals);"]
(format "M.e.push(~a);"
(string-join (build-list (InstallClosureValues!-n op)
(lambda: ([i : Natural])
(format "M.p.closedVals[~a]" i)))
","))]
[(RestoreEnvironment!? op)
"M.e=M.e[M.e.length-2].slice(0);"]