aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2020-06-15 07:46:09 +0100
committerGitHub <noreply@github.com>2020-06-15 07:46:09 +0100
commite72c19fe5adc268d8db214fe255748c7b2b4df8a (patch)
treec942ec366a95803c488c128d1c15aaecb9373fa7
parentd4c5ebb5fb79bbfa52bc17587413bc6c0ac8b7c0 (diff)
parentc232c13eb9514d43854bcb107bccf23981993c51 (diff)
downloadperlweeklychallenge-club-e72c19fe5adc268d8db214fe255748c7b2b4df8a.tar.gz
perlweeklychallenge-club-e72c19fe5adc268d8db214fe255748c7b2b4df8a.tar.bz2
perlweeklychallenge-club-e72c19fe5adc268d8db214fe255748c7b2b4df8a.zip
Merge pull request #1826 from ash/ash-065
065-1 by ash
-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(', ')
+);