Currying is in S06 and S03.sub add(Num $x, Num $y){ $x + $y } &add_two := &add.assuming(y => 2); say add_two(1); # prints 3
In reply to Re: Perl6, Pugs and captures
by lidden
in thread Perl6, Pugs and captures
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |