From: David Vázquez Date: Sun, 21 Apr 2013 14:32:14 +0000 (+0100) Subject: Improve the MV function X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=2c6ff3077748b3dbcd855b1c8b4c76ae02a9e46f;p=jscl.git Improve the MV function --- diff --git a/prelude.js b/prelude.js index b934132..b62c9cf 100644 --- a/prelude.js +++ b/prelude.js @@ -1,12 +1,13 @@ +// This file is prepended to the result of compile ecmalisp.lisp, and +// contain runtime code that ecmalisp assumes to exist. + var nil; function pv (x) { return x==undefined? nil: x; } function mv(){ - var r = []; + var r = [].slice.call(arguments); r['multiple-value'] = true; - for (var i=0; i