Lambda series
- Argument before the ... can be a lambda
- Previous elements of the list serve as inputs to lambda
say ~( 2, { $^x + 3 } ... 20 )continued...
Perl 6 | Perl 6 series operator | #11 |
say ~( 2, { $^x + 3 } ... 20 )continued...
Copyright © 2010 http://www.pmichaud.com/2010/pres/ |