From c232c13eb9514d43854bcb107bccf23981993c51 Mon Sep 17 00:00:00 2001 From: Andrew Shitov Date: Mon, 15 Jun 2020 08:36:28 +0200 Subject: 065-1 by ash --- challenge-065/ash/README | 5 +++++ challenge-065/ash/raku/ch-1.raku | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 challenge-065/ash/README create mode 100644 challenge-065/ash/raku/ch-1.raku 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(', ') +); -- cgit