Re: on generating combinations among a variable list of lists

2020-06-28 Thread Boris Dorestand
Peter Otten <__pete...@web.de> writes: > Boris Dorestand wrote: > >> Say we have [1,3,5,7], [2,3], [1,10]. I'd like to generate >> >> [1,2,1] >> [1,2,10] >> [1,3,1] >> [1,3,10] >> [3,2,1] >> [3,2,10] >> [3,3,1] >> [3,3,10] >> [5, ...] >> ... >> [7,3,10] >> >> The number of

Re: on generating combinations among a variable list of lists

2020-06-28 Thread Peter Otten
Boris Dorestand wrote: > Say we have [1,3,5,7], [2,3], [1,10]. I'd like to generate > > [1,2,1] > [1,2,10] > [1,3,1] > [1,3,10] > [3,2,1] > [3,2,10] > [3,3,1] > [3,3,10] > [5, ...] > ... > [7,3,10] > > The number of input lists is variable. The example shows three lists,

on generating combinations among a variable list of lists

2020-06-28 Thread Boris Dorestand
Say we have [1,3,5,7], [2,3], [1,10]. I'd like to generate [1,2,1] [1,2,10] [1,3,1] [1,3,10] [3,2,1] [3,2,10] [3,3,1] [3,3,10] [5, ...] ... [7,3,10] The number of input lists is variable. The example shows three lists, but there could be only one or ten lists or any other