RosettaCodeData/Task/Permutations/Pluto/permutations.pluto

7 lines
165 B
Text
Raw Permalink Normal View History

2025-08-11 18:05:26 -07:00
require "perm"
local fmt = require "fmt"
local a = {1, 2, 3}
print($"There are {perm.count(#a)} permutations of {fmt.swrite(a)}, namely:")
fmt.lprint(perm.list(a))