Re: currying in perl6

2005-04-14 Thread Autrijus Tang
On Thu, Apr 14, 2005 at 12:51:08PM -0500, Matthew D Swank wrote: > returns a closure, however pugs won't parse: > > make-adder 5 6 > > or: > > (make-adder 5) 6 > > I have to resort to: > > (make-adder 5)(6) > > Is this correct behavior? I think it's the correct behaviour, yes. We are not cu

currying in perl6

2005-04-14 Thread Matthew D Swank
I apologize if this has already been addressed, but given the following definition: sub make-adder ($a){ sub ($b) { $a + b$; } } make-adder 5 returns a closure, however pugs won't parse: make-adder 5 6 or: (make-adder 5) 6 I have to resort to: (make-adder 5)(6) Is this corr