2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -0,0 +1,10 @@
|
|||
local permute, tablex = require("pl.permute"), require("pl.tablex")
|
||||
local permList, pStr = {
|
||||
"ABCD", "CABD", "ACDB", "DACB", "BCDA", "ACBD", "ADCB", "CDAB",
|
||||
"DABC", "BCAD", "CADB", "CDBA", "CBAD", "ABDC", "ADBC", "BDCA",
|
||||
"DCBA", "BACD", "BADC", "BDAC", "CBDA", "DBCA", "DCAB"
|
||||
}
|
||||
for perm in permute.iter({"A","B","C","D"}) do
|
||||
pStr = table.concat(perm)
|
||||
if not tablex.find(permList, pStr) then print(pStr) end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue