On Wed, Dec 30, 2020 at 7:20 PM ToddAndMargo via perl6-users
<perl6-users@perl.org> wrote:
>
> On 12/30/20 7:06 PM, yary wrote:
> > Look up ..^ which is the long form of ^ when used in ^8 sort of thing
> >
> > https://docs.raku.org/routine/..$CIRCUMFLEX_ACCENT
> > <https://docs.raku.org/routine/..$CIRCUMFLEX_ACCENT>
> >
> > "Constructs a Range <https://docs.raku.org/type/Range> from the
> > arguments, excluding the end point."
> >
> > try out these
> > 3 .. 7
> > 3 ..^ 7
> > 3 ^.. 7
> > 3 ^..^ 7
>
> Hi Yary,
>
>     You have got to love Raku!   Thank you!
>
> -T
>
>  > $x=4; for 3..7 -> $i { print "i = $i\n"; }
> i = 3
> i = 4
> i = 5
> i = 6
> i = 7
>
>  > $x=4; for 3..^7 -> $i { print "i = $i\n"; }
> i = 3
> i = 4
> i = 5
> i = 6
>
>  > $x=4; for 3^..7 -> $i { print "i = $i\n"; }
> i = 4
> i = 5
> i = 6
> i = 7
>
>  > $x=4; for 3^..^7 -> $i { print "i = $i\n"; }
> i = 4
> i = 5
> i = 6
>

Hi Todd (and Yary, and Curt),

There's an open Github issue on the interaction between Seqs and carets:

https://github.com/rakudo/rakudo/issues/3881

Scroll down to the section entitled, "EDIT 08/29/2020 -- TL;DR
Version" for the crux of the issue.

And please feel free to comment on Github!

Best, Bill.

Reply via email to