mingle {v,w,...} -- produces a new list from the lists or
sequences v,w,... by taking the first element from each, then the second,
and so on.
mingle (v,w,...) -- does the same.
After one of the lists is exhausted, it is silently ignored.
i1 : mingle({1,2,3,4},{a},{F,F,F,F,F,F,F,F,F,F}) |
i2 : concatenate mingle( {"a","b","c"} , {",",","} ) |
It is easy to transpose a nested list (thinking of it as a matrix) using mingle and pack.
i3 : pack(2, mingle {{1,2,3,4},{5,6,7,8}}) |
Ways to use mingle :