Jump to content

Runtime evaluation/In an environment: Difference between revisions

m
→‎{{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</lang>
IN: scratchpad x get .
f</lang>
 
=={{header|Forth}}==
1,808

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.