The Lambda Lab
/
projects
/
scheme.forth.jl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e89a166
)
Completed draft of primitive application.
author
Tim Vaughan
<tgvaughan@gmail.com>
Tue, 19 Jul 2016 10:07:32 +0000
(22:07 +1200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Tue, 19 Jul 2016 10:07:32 +0000
(22:07 +1200)
scheme.4th
patch
|
blob
|
history
diff --git
a/scheme.4th
b/scheme.4th
index
5c8f57d
..
fa53d67
100644
(file)
--- a/
scheme.4th
+++ b/
scheme.4th
@@
-831,7
+831,7
@@
defer eval
cdr ;
: nooperands? ( operands -- bool )
-
cdr
nil objeq? ;
+ nil objeq? ;
: first-operand ( operands -- operand )
car ;
@@
-840,7
+840,15
@@
defer eval
cdr ;
: list-of-vals ( args env -- vals )
+ 2swap
+ 2dup nooperands? if
+ 2swap 2drop
+ else
+ 2over 2over first-operand 2swap eval
+ -2rot rest-operands 2swap recurse
+ cons
+ then
;
:noname ( obj env -- result )