I am trying to merge two arrays into one in a zipper like fashion. I have difficulty to make that happen.
array1=(one three five seven)
array2=(two four six
I've found more common the case where I want to zip two arrays into two columns. This isn't as natively Zsh as the "RTLinuxSW" answer, but for this case, I use paste.
% tabs 16
% paste <(print -l $array1) <(print -l $array2)
one two
three four
five six
seven eight
And then can shove that into another array to get the intended output:
% array3=( `!!`«tab»«tab» )
% print $array3
one two three four five six seven eight