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:
16:21 >raku -e "my @c = 'a'..'z'; @c[flat 6..9, 23, 25].map( { qq[<$_>
+] } ).raku.put;"
("<g>", "<h>", "<i>", "<j>", "<x>", "<z>").Seq
16:21 >raku -e "my @c = 'a'..'z'; @c[ (6..9, 23, 25).flat ].map( { qq[
+<$_>] } ).raku.put;"
("<g>", "<h>", "<i>", "<j>", "<x>", "<z>").Seq
16:22 >
Thanks again,
|