aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-138/ash/raku/ch-1.raku8
1 files changed, 8 insertions, 0 deletions
diff --git a/challenge-138/ash/raku/ch-1.raku b/challenge-138/ash/raku/ch-1.raku
new file mode 100644
index 0000000000..8960e78b78
--- /dev/null
+++ b/challenge-138/ash/raku/ch-1.raku
@@ -0,0 +1,8 @@
+# $ raku ch-1.raku 2021
+# 261
+# $ raku ch-1.raku 2020
+# 262
+
+sub MAIN(Int $year) {
+ say +(grep {$_.day-of-week < 6}, (Date.new($year, 1, 1) .. Date.new($year, 12, 31)))
+}