RosettaCodeData/Task/Permutations/Wren/permutations-3.wren

7 lines
157 B
Plaintext

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