BTW I already gave a solution to a generalization of the original problem which is O(n) and has no side-effects at Re (tilly) 1: interleaving lists.
In reply to Re (tilly) 3: interleave two arrays
by tilly
in thread interleave two arrays
by eg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |