in reply to Re: printing every 2nd entry in a list backwards
in thread printing every 2nd entry in a list backwards
Here's a mapslice
mapslice => sub { my @x = @::list[ map {$_<<1} reverse 0..@::list>>1 ] + }
which you might want to add.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: printing every 2nd entry in a list backwards
by tobyink (Canon) on May 19, 2017 at 18:21 UTC |