Perl 6 range operator
The '..' operator is used to construct a Range
my @a = 1..5; # 1, 2, 3, 4, 5 my @b = 'a'..'z'; # 'a', 'b', 'c', ... my @c = 7..100; # 7, 8, 9, ..., 100 my @d = 1..*; # 1, 2, 3, 4, ..., Inf
Perl 6 | Perl 6 series operator | #4 |
The '..' operator is used to construct a Range
my @a = 1..5; # 1, 2, 3, 4, 5 my @b = 'a'..'z'; # 'a', 'b', 'c', ... my @c = 7..100; # 7, 8, 9, ..., 100 my @d = 1..*; # 1, 2, 3, 4, ..., Inf
Copyright © 2010 http://www.pmichaud.com/2010/pres/ |