I'm working a lot with lists, but can seem to get my head around a way to lace/interleave three lists. The [zl] object has a wonderful 'lace' function, that interleaves two lists. How can this functionality be extended to three or more lists?
message-box1: 100 200 300 400
message-box2: 3000 5000 1000 7000
message-box3: 0.1 -0.2 0.3 -0.4
I would like these to be interleaved as:
list: 100 3000 0.1 200 5000 -0.2 300 1000 0.3 400 7000 -0.4
Is it possible to process lists like this? I'm stuck in getting a the first element out of all lists, then the second, then the third, an so on.
I've tried combining [zl len] (the number of elements in the lists), with some [uzi]/[counter] stuff (to get a series of numbers to list) and then a [zl nth] to get the first, second, third element out (and finally an [append $1] message to add them to the list). But this seems rather clumsy, and I can't get it to work.
Any help or hint would be very appreciated! :)