P is for Practical | |
PerlMonks |
Re^2: [Raku] Ranges in array slicesby Athanasius (Archbishop) |
on Jun 01, 2021 at 06:26 UTC ( [id://11133345]=note: print w/replies, xml ) | Need Help?? |
Hello holli, Thanks, that’s brilliant! Note for my fellow Raku-challenged monks: My first thought on seeing holli’s code was that flat was taking the range 6..9 as its argument. But, of course, the argument to flat here is the whole comma-separated list: 6..9, 23, 25. So the following constructs both solve my problem:
Thanks again,
In Section
Seekers of Perl Wisdom
|
|