On 12/30/20 6:04 PM, Curt Tilmes wrote:
On Wed, Dec 30, 2020 at 8:40 PM ToddAndMargo via perl6-users <perl6-us...@perl.org> wrote:In the following for loop:for ^$nCount -> $i { What is the ^ doing?https://docs.raku.org/type/Range About the third paragraph from the top: The caret is also a prefix operator for constructing numeric ranges starting from zero: my $x = 10; say ^$x; # same as 0 ..^ $x.Numeric
Thank you! In a for look, it looks like 0 through 9. Is that the for loops doing?