Let's say I have an array like this one:
string[] separatingStrings = {"Hello", "Hi"};
I want to get all these results in 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 a 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 failed. I tried searching over internet but everyone was using integer variables or splitting the strings into chars.