Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combinations of lists? #4

Closed
KevinTyrrell opened this issue Jul 6, 2017 · 3 comments
Closed

Combinations of lists? #4

KevinTyrrell opened this issue Jul 6, 2017 · 3 comments

Comments

@KevinTyrrell
Copy link

I have n lists all of the same type. I want to loop through all the possible combinations of pulling one item from each of those lists.

Ex.

List 1 = { Red, Blue, Orange }
List 2 = { Brown }
List 3 = { White, Black }

Red Brown White
Red Brown Black
Blue Brown White
Blue Brown Black
Orange Brown White
Orange Brown Black

How can I do that with this library? Thanks

dpaukov pushed a commit that referenced this issue Apr 21, 2018
Cartesian product generator.
Fixes Issue #4
@dpaukov
Copy link
Owner

dpaukov commented Apr 21, 2018

This enhancement (cartesian product generator) will be released by the end of May 2018 in version 3.2.1

@dpaukov
Copy link
Owner

dpaukov commented Apr 21, 2018

@KevinTyrrell
Copy link
Author

Great addition. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants