in reply to Switch the odd/even elements of an array

A Perl 6 solution, because I can't resist:

my @swapped = (1..8).map: { $^b, $^a };