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

Reply via email to