Say I have a list that contains n lists. Is there a neat way get all possible combinations of those lists that have length n, each element keeping it's position.
Here's an example:
lists=[[1],[2,3],[4,5]]
output:
[[1,2,4],
[1,3,4],
[1,2,5],
[1,3,5]]