Except it gives the wrong answer:
Wanted: 8 1 2 7 6 3 4 5 Given: 8 1 7 2 6 3 5 4
Less important - the OP seems to want the array elements in that order rather than just a numeric sequence, but that's trivial to fix by using a slice.
In reply to Re^2: Golf/Perlish solution to this problem?
by GrandFather
in thread Golf/Perlish solution to this problem?
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |