aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-092/ash/blog.txt1
-rw-r--r--challenge-092/ash/raku/ch-1.raku21
2 files changed, 22 insertions, 0 deletions
diff --git a/challenge-092/ash/blog.txt b/challenge-092/ash/blog.txt
new file mode 100644
index 0000000000..470dd0d754
--- /dev/null
+++ b/challenge-092/ash/blog.txt
@@ -0,0 +1 @@
+https://andrewshitov.com/2020/12/21/raku-challenge-week-92-issue-1/
diff --git a/challenge-092/ash/raku/ch-1.raku b/challenge-092/ash/raku/ch-1.raku
new file mode 100644
index 0000000000..6d81802f09
--- /dev/null
+++ b/challenge-092/ash/raku/ch-1.raku
@@ -0,0 +1,21 @@
+#!/usr/bin/env raku
+#
+# Task 1 from
+# https://perlweeklychallenge.org/blog/perl-weekly-challenge-092/
+
+# Comments: https://andrewshitov.com/2020/12/21/raku-challenge-week-92-issue-1/
+
+unit sub MAIN(Str $a, Str $b);
+
+say + [==] ($a.comb.map: *.ord) <<->> ($b.comb.map: *.ord);
+
+# Test cases:
+#
+# $ raku ch-1.raku abc def
+# 1
+#
+# $ raku ch-1.raku abb xyy
+# 1
+#
+# $ raku ch-1.raku sum add
+# 0