September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
1
Task/Runtime-evaluation-In-an-environment/00META.yaml
Normal file
1
Task/Runtime-evaluation-In-an-environment/00META.yaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
--- {}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
USE: eval
|
||||
: eval-bi@- ( a b program -- n )
|
||||
tuck [ ( y -- z ) eval ] 2bi@ - ;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
IN: scratchpad 9 4 "dup *" eval-bi@- .
|
||||
65
|
||||
|
|
@ -0,0 +1 @@
|
|||
: bi@- ( a b quot -- n ) bi@ - ; inline
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
IN: scratchpad 9 4 [ dup * ] bi@- .
|
||||
65
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
SYMBOL: x
|
||||
: eval-with-x ( a b program -- n )
|
||||
tuck
|
||||
[ [ x ] dip [ ( -- y ) eval ] curry with-variable ] 2bi@ - ;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
IN: scratchpad 9 4 "x get dup *" eval-with-x .
|
||||
65
|
||||
IN: scratchpad x get .
|
||||
f
|
||||
Loading…
Add table
Add a link
Reference in a new issue