Runtime evaluation/In an environment: Difference between revisions
Runtime evaluation/In an environment (view source)
Revision as of 01:07, 18 October 2018
, 5 years ago→{{header|Factor}}: fix a typo, demonstrate the non-global status of x
(Add Factor example) |
m (→{{header|Factor}}: fix a typo, demonstrate the non-global status of x) |
||
Line 266:
tuck
[ [ x ] dip [ ( -- y ) eval ] curry with-variable ] 2bi@ - ;</lang>
<lang factor>IN: scratchpad 9 4 "x get dup * " eval-with-x .
65
IN: scratchpad x get .
f</lang>
=={{header|Forth}}==
|