Sorry, this can appear as an already asked question, but i was unable to find the same case i need.
I’ve an array of words:
["a", "b", "c"]
and i need to find all possibile permutations, even by not using all items, and without repetitions:
a
a,b
a,c
b
b,a
b,c
c
c,a
c,b
a,b,c
a,c,b
b,a,c
b,c,a
....
and so on.
Thanks