aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchallenge-141/luca-ferrari/raku/ch-2.p66
1 files changed, 6 insertions, 0 deletions
diff --git a/challenge-141/luca-ferrari/raku/ch-2.p6 b/challenge-141/luca-ferrari/raku/ch-2.p6
new file mode 100755
index 0000000000..ae278b19e1
--- /dev/null
+++ b/challenge-141/luca-ferrari/raku/ch-2.p6
@@ -0,0 +1,6 @@
+#!raku
+
+sub MAIN( Int $m, Int $n ) {
+ $m.comb.combinations( 1 ..^ $m.Str.chars ).map( *.join.Int ).grep( * %% $n ).unique.sort.say;
+
+}