RosettaCodeData/Task/Combinations/Pluto/combinations.pluto

11 lines
218 B
Text
Raw Permalink Normal View History

2025-08-11 18:05:26 -07:00
require "perm"
local fmt = require "fmt"
local a = range(0, 4)
local co = coroutine.create(comb.generate)
while true do
local _, res = coroutine.resume(co, a, 3)
if !res then break end
fmt.lprint(res)
end