Add Functions/Closures
doonv opened this issue · 0 comments
doonv commented
What problem does this solve or what need does it fill?
There is no way to make your own functions/closures inside the built-in parser.
What solution would you like?
Add a way to create your own functions/closures.
I think only implementing closures is actually the right move, mostly because its less work.
But I also kinda prefer the closure syntax for creating functions in a console. Heres an example:
my_func = |a| a + 5
my_func 5
> 10