[Tutor] Joining multiple lists
JRicker
joejava@dragoncat.net
Wed, 23 May 2001 23:47:06 -0400
I'm struggling with a little algorithm and I hope this list can shed
some light on it. How would you go about joining a variable number of
lists together? I can see two or three but for what I'm doing I can't
be forced to code for only a couple possibilities. To clarify what I'm
doing a little, if you had three lists to join:
a = 1,2,3
b = 5,10,15
c = 20,30,40
The results would be something like:
((1,5,20), (1,5,30), (1,5,40), (1,10,20),
(1,10,30),(1,10,40),(1,15,20),(1,15,30)....etc).
Thanks for any advice.
Joel