mingle(L)
The output list M takes the first element of each Li, i=1,...,n, followed by the second element of Li, i=1,...,n, and so forth.
|
The lists can have different lengths. After a list is exhausted, it will be silently ignored.
|
To transpose a nested list (thinking of it as a matrix), try using mingle with pack.
|
Notice from the previous example that mingle accepts sequences and other types of BasicLists as input, but the output will always be a List.
Further examples:
|
|
The object mingle is a compiled function.