Arithmetic series
say ~(2, 4, 6, ... 100) # 2 4 6 8 10 ... 100
- - - -
say ~(5, 10, 15 ... 100)continued...
Perl 6 | Perl 6 series operator | #8 |
say ~(2, 4, 6, ... 100) # 2 4 6 8 10 ... 100
- - - -
say ~(5, 10, 15 ... 100)continued...
Copyright © 2010 http://www.pmichaud.com/2010/pres/ |