http://qs321.pair.com?node_id=11133549


in reply to [Raku] Ranges in array slices

You can apply a sequence here:
> my @c = 'a'..'z'; @c[6...9, 23, 25].map( { qq[<$_>] } ) (<g> <h> <i> <j> <x> <z>)
It has the advantage of working downwards also:
> my @c = 'a'..'z'; @c[9...6, 23, 25].map( { qq[<$_>] } ) (<j> <i> <h> <g> <x> <z>)
You have to be careful with this by ranges:
> my @c = 'a'..'z'; @c[9..6, 23, 25].map( { qq[<$_>] } ) (<> <x> <z>)