aboutsummaryrefslogtreecommitdiff
path: root/challenge-067/arne-sommer/raku/numcom
blob: 3fab02ba3d7292ecdbdc23b3743911fd97b8f825 (plain)
1
2
3
4
5
#! /usr/bin/env raku

unit sub MAIN (Int $m where $m > 0, Int $n where $n > 0);

say "[ ", (1..$m).combinations($n).map({ "[{ $_.join(",") }]" }).join(", "), " ]";