-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Is your feature request related to a problem? Please describe.
It is currently not possible to create a new closure based on input values.
Describe the solution you'd like
Create a closure(..) function which allows for the creation of a new closure by string.
If no argument is given, a default closure ||nil should be returned.
Examples:
without argument
c = closure(); // -> || nil
c(); // -> nilwith a string argument
c = closure('|x| x*2'); // -> |x| x * 2
c(21); // -> 42Reactions are currently unavailable