by ASipos · 8y ago · 0 comments
Here's a self-modifying function ;^)
>> foo: has [x][append body-of context? 'x [+ 1] 1]
== func [/local x][append body-of context? 'x [+ 1] 1]
>> loop 3 [probe foo]
1
2
3
== 3
>> ?? foo
foo: func [/local x][append body-of context? 'x [+ 1] 1 + 1 + 1 + 1]