combinations[m, n] := { a = toArray[0 to n-1] return lexicalSort[a.combinations[m]] } println[formatTable[combinations[3,5]]]