Open joergen7 opened 10 years ago
It should be possible to curry tasks.
Example:
deftask my-task( <out> : <a> <b> ) { out = a; } my-curried-task = curry( task: my-task b: 2 ); my-curried-task( a: 1 );
should evaluate to 1. As should
deftask my-task( out : a b )in bash *{ out=$a }* my-curried-task = curry( task: my-task b: 2 ); my-curried-task( a: 1 );
The lambda expression that results from currying should always have a native prototype.
It should be possible to curry tasks.
Example:
should evaluate to 1. As should