in reply to Re^2: [Raku] Ranges in array slices
in thread [Raku] Ranges in array slices
Hi there!
I'm not so sure, to be honest. I'm still very fresh with Raku.
From what I've gathered so far, you'll take range when you just need two ends of a stick, and sequence, when you need the stick.
EDIT:
Sequence can also be characterised by the accented stickiness of the stick, to continue this sticky metaphor. It's accented even over the idea of its end, to the effect that if an end of the stick doesn't meet the stickiness, then it's ignored. Example:
I wonder if it's grammatically possible to jump over both ends this way... (sic!)1
1) ...like this...
I'm not so sure, to be honest. I'm still very fresh with Raku.
From what I've gathered so far, you'll take range when you just need two ends of a stick, and sequence, when you need the stick.
EDIT:
Sequence can also be characterised by the accented stickiness of the stick, to continue this sticky metaphor. It's accented even over the idea of its end, to the effect that if an end of the stick doesn't meet the stickiness, then it's ignored. Example:
See, where it goes?0, * + 2 ... 1
I wonder if it's grammatically possible to jump over both ends this way... (sic!)1
1) ...like this...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: [Raku] Ranges in array slices
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