generating list with permuted tuples in a list
How to permute the tuple on a list.
A= [(a,b), (c,d), (e, f)]
If A is a list then it's permutations are
[(a,b), (c,d), (e, f)]
[(a,b), (c,d), (f, e)]
[(a,b), (d,c), (e, f)]
[(a,b), (d,e), (f, e)]
....
It has 8 such list.
No comments:
Post a Comment