RosettaCodeData/Task/Permutations/Wren/permutations-3.wren
2023-07-01 13:44:08 -04:00

6 lines
157 B
Text

import "./perm" for Perm
var a = [1, 2, 3]
System.print(Perm.list(a)) // not lexicographic
System.print()
System.print(Perm.listLex(a)) // lexicographic