Let's say i have an array like this one:
string[] separatingStrings = {"Hello","Hi"};
I want to get all these results on another array
result[0] = Hi
result[1] = Hello
result[2] = Hi Hello
result[3] = Hello Hi
As you can see, those are 4 results. If i entered three elements, i would get a total of 15 results.
Example with STRING array: {"11", "22", "33"}
result[0] = 11
result[1] = 22
result[2] = 33
result[3] = 11, 22
result[4] = 11, 33
result[5] = 22, 11
result[6] = 22, 33
result[7] = 33, 11
result[8] = 33, 22
result[9] = 11, 22, 33
result[10] = 11, 33, 22
result[11] = 22, 11, 33
result[12] = 22, 33, 11
And so on... (It's not necessary to have that order, i just want every possible variation (without repeating the same value on the index) on another array)
I've tried to do it myself and clearly i failed. I tried searching over internet but everyone was using INT variables or splitting the strings into chars.
Thank you all, any help is appreciated.