in reply to Re: printing every 2nd entry in a list backwards
in thread printing every 2nd entry in a list backwards
With the range operator and reverse:
And using the sequence operator which can build a reversed list:for (1..10).reverse -> $x, $y { say $y}
for 10...1 -> $x, $y {say $y }
|
---|