projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9e8ef6
)
Improve the MV function
author
David Vázquez
<davazp@gmail.com>
Sun, 21 Apr 2013 14:32:14 +0000
(15:32 +0100)
committer
David Vázquez
<davazp@gmail.com>
Sun, 21 Apr 2013 14:32:14 +0000
(15:32 +0100)
prelude.js
patch
|
blob
|
history
diff --git
a/prelude.js
b/prelude.js
index
b934132
..
b62c9cf
100644
(file)
--- 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<arguments.length; i++)
- r.push(arguments[i]);
return r;
}