Basic series operator
say ~(1 ... 100) # 1 2 3 4 5 6 ... 100
- - - -
More explicitly
say ~(1, 2, 3 ... 100) # 1 2 3 4 5 6 ... 100
Perl 6 | Perl 6 series operator | #7 |
say ~(1 ... 100) # 1 2 3 4 5 6 ... 100
- - - -
say ~(1, 2, 3 ... 100) # 1 2 3 4 5 6 ... 100
Copyright © 2010 http://www.pmichaud.com/2010/pres/ |