RosettaCodeData/Task/Runtime-evaluation-In-an-en.../Factor/runtime-evaluation-in-an-en...

5 lines
119 B
Factor

SYMBOL: x
: eval-with-x ( a b program -- n )
tuck
[ [ x ] dip [ ( -- y ) eval ] curry with-variable ] 2bi@ - ;