aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-065/ash/README5
-rw-r--r--challenge-065/ash/raku/ch-1.raku12
2 files changed, 17 insertions, 0 deletions
diff --git a/challenge-065/ash/README b/challenge-065/ash/README
new file mode 100644
index 0000000000..1936ef4874
--- /dev/null
+++ b/challenge-065/ash/README
@@ -0,0 +1,5 @@
+Solution by Andrew Shitov
+
+Solutions using the Raku programming language:
+
+Comments and explanations to Task 1: https://andrewshitov.com/2020/06/15/raku-daily-skill-builders/
diff --git a/challenge-065/ash/raku/ch-1.raku b/challenge-065/ash/raku/ch-1.raku
new file mode 100644
index 0000000000..ddc2042b8d
--- /dev/null
+++ b/challenge-065/ash/raku/ch-1.raku
@@ -0,0 +1,12 @@
+#!/usr/bin/env raku
+
+my $n = 2;
+my $s = 4;
+
+say(
+ (
+ (10**($n - 1) ..^ 10**$n)
+ .grep(
+ {$s == [+] $_.comb})
+ ).join(', ')
+);