Hello,
In general, how does one add to an already existing function’s definition?
For example, suppose we define the identity function:
f:{x}
And that we wanted f to output one more than it currently does.
f:{f+1}
The above wouldn’t work; this produces a stack error.
'stack [1799f:{f+1}
I’m not sure how to redefine a function while referencing its current version and not causing such an error.
I acknowledge for this simple example, one could just redefine f:{x+1}. But the idea is to build on the existing f - not to destroy f and recreate it from scratch. That would be a redefinition, not a shim. If anything else may be unclear about my question, please let me know.
Any help or advice would be greatly appreciated.
Kind regards,
Michael