16 people like it.
Like the snippet!
Cartesian product of a variable number of lists. Input is a list of lists of which the cartesian product is to be constructed; output is a list that contains the elements of the product set, as lists.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
|
Link: | http://fssnip.net/2A |
Posted: | 13 years ago |
Author: | Alexander Rautenberg |
Tags: | list , combination , cartesian |