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