When I try to use set on custom functions, an error message tells me that only element functions can be used with set. I wanted to set a default value on a global custom function inside the body of another custom function (using an argument value).
I currently bypass the problem using a global state. Another option would be partial application via lambda expression.
Is there a way how I can turn custom functions into element functions for use with set?