I have two nodelists nl_first & nl_second.
Anyone of the two lists can be bigger than the other.
- I will start with nl_first and populate the array in a way that first & second element in the array will be nl_first[0] & nl_second[0].
- Similarly, third and forth will be nl_first[1] & nl_second[1].
- Now, if nl_second has finished, I will simply append the elements in nl_first in the array.
Visually, if
nl_first = a,b,c,d,e
nl_second = x,y,z
I need my array to have a,x,b,y,c,z,d,e
.
How can I accomplish that elegantly?