#Using #set with custom functions

3 messages · Page 1 of 1 (latest)

brave totem
#

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?

uneven walrus
#

as of now, no

#

make a wrapper function instead and use that in place of the original function