I have this kind of list:
[['I'],['want','love','like'],['cat',dog]]
and I want to create a function that can return all combinations of words in the lists like this:
[['I'],['want'],['cat']]
[['I'],['love'],['cat']]
[['I'],['like'],['cat']]
[['I'],['want'],['dog']]
[['I'],['love'],['dog']]
[['I'],['like'],['dog']]
PS: The function must work with any n
words