in reply to Re: [Raku] Ranges in array slices
in thread [Raku] Ranges in array slices
Thanks tomasz, and a belated welcome to the Monastery!
The sequence operator looks really powerful: my attention was particularly caught by this example from the documentation:
This allows you to writesay 1, 1, * + * ...^ *>= 100; # OUTPUT: «(1 1 2 3 5 8 13 21 34 55 89)»to generate all Fibonacci numbers up to but excluding 100.
Of course, now that I have an operator that works the way I expected the range operator to work, I’m wondering: why would I ever need the range operator?
Cheers,
Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: [Raku] Ranges in array slices
by holli (Abbot) on Jun 05, 2021 at 19:14 UTC | |
Re^3: [Raku] Ranges in array slices
by tomasz (Acolyte) on Jun 05, 2021 at 16:11 UTC | |
by holli (Abbot) on Jun 05, 2021 at 19:20 UTC | |
by tomasz (Acolyte) on Jun 05, 2021 at 20:46 UTC | |
by holli (Abbot) on Jun 05, 2021 at 21:08 UTC | |
by LanX (Saint) on Jun 05, 2021 at 21:00 UTC | |
by tomasz (Acolyte) on Jun 06, 2021 at 11:40 UTC | |
by holli (Abbot) on Jun 06, 2021 at 18:56 UTC | |
by tomasz (Acolyte) on Jun 06, 2021 at 19:09 UTC |
In Section
Seekers of Perl Wisdom