Timeline for Create all possible combinations of lists of different sizes in numpy
Current License: CC BY-SA 4.0
Post Revisions
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 31, 2022 at 13:43 | answer | added | Romain Simon | timeline score: 0 | |
| Jul 29, 2022 at 12:19 | vote | accept | gimi | ||
| Jul 29, 2022 at 7:53 | comment | added | Olvin Roght |
If you want functional approach - here is it list(chain.from_iterable(starmap(product, combinations((a, b, c, d), 2)))
|
|
| Jul 29, 2022 at 7:42 | answer | added | gimix | timeline score: 0 | |
| Jul 29, 2022 at 7:35 | comment | added | gimi | @DaniMesejo yes in my case | |
| Jul 29, 2022 at 7:34 | comment | added | Olvin Roght |
[i for c in combinations((a, b, c, d), 2) for i in product(*c)]
|
|
| Jul 29, 2022 at 7:28 | answer | added | Pieter Geelen | timeline score: 2 | |
| Jul 29, 2022 at 7:26 | comment | added | Dani Mesejo | Are the elements of the list uniques? | |
| Jul 29, 2022 at 7:20 | history | asked | gimi | CC BY-SA 4.0 |