1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
List<Element> = {A, B, C}; // this is what I have
// And this is what I want to get from the function:
List<Map<Element, Element>> =
{
{A->A, B->A, C->A}, {A->A, B->A, C->B}, {A->A, B->A, C->C},
{A->A, B->B, C->A}, {A->A, B->B, C->B}, {A->A, B->B, C->C},
{A->A, B->C, C->A}, {A->A, B->C, C->B}, {A->A, B->C, C->C},
{A->B, B->A, C->A}, {A->B, B->A, C->B}, {A->B, B->A, C->C},
{A->B, B->B, C->A}, {A->B, B->B, C->B}, {A->B, B->B, C->C},
{A->B, B->C, C->A}, {A->B, B->C, C->B}, {A->B, B->C, C->C},
{A->C, B->A, C->A}, {A->C, B->A, C->B}, {A->C, B->A, C->C},
{A->C, B->B, C->A}, {A->C, B->B, C->B}, {A->C, B->B, C->C},
{A->C, B->C, C->A}, {A->C, B->C, C->B}, {A->C, B->C, C->C}
};
| |