On Sep 20, 3:08 pm, Mark Lawrence wrote:
> On 20/09/2010 21:54, Seth Leija wrote:
>
>
>
>
>
> > I need to know how to generate a list of combinations/permutations
> > (can't remember which it is). Say I have a list of variables:
>
> > [a,b,c,d,
I need to know how to generate a list of combinations/permutations
(can't remember which it is). Say I have a list of variables:
[a,b,c,d,...,x,y,z]
I am curious if there is an optimized way to generate this:
[[a,b],[a,c],[a,d],...,[x,z],[y,z]]
I currently have an iteration that does this:
#li