All array combinations in fixed order
Hi there,
Gotten stuck on a relative smple question.
This is my multidimensional example Array:
var test:Array = [[0,1],[1,0],[2],[3],[4,5]];
For every combination in this fixed order I want the output. So the output for this example is:
01234
01235
11234
11235
00234
00235
10234
10235
I found this article, but cannot get it working in ActonScript: LINK
In the above example the Array has 5 elements (including nested arrays). But it also should work with arrays with more ore less items.
Hope someone can help me figure out how to achieve this.
