-
Dynamically project function
Two questions on function projection
Firstly, how can I project a function to one with no args, i.e. deferred execution.
fn: {[x] x+1};
Obviously fn[1] or fn @ 1 will invoke the function now. Is there a way without wrapping it in another fn?
Secondly, how can I dynamically project a function, e.g.
fn: {[x;y;z] x+y-z}; args: (1; ::; 3);
I’d like to achieve the equivalent of fn[1; ; 3], however fn . args invokes the function now with the second parameter as null rather than returning a projection.
Thanks
Log in to reply.