From 2c6ff3077748b3dbcd855b1c8b4c76ae02a9e46f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20V=C3=A1zquez?= Date: Sun, 21 Apr 2013 15:32:14 +0100 Subject: [PATCH] Improve the MV function --- prelude.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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