summary refs log tree commit diff stats
path: root/raku/leap/Leap.rakumod
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-08-11 15:26:15 +0530
committerAndinus <andinus@nand.sh>2021-08-11 15:26:15 +0530
commit321825828ac918bad28d0597a8616c6dc9802c3c (patch)
tree0b8e9cb1012197750eb58e972736319b2a6abac2 /raku/leap/Leap.rakumod
parent2979ef790ac5b8f58495e0dd08cafd6a3a2e30a5 (diff)
downloadexercism-321825828ac918bad28d0597a8616c6dc9802c3c.tar.gz
Add solved exercises
Diffstat (limited to 'raku/leap/Leap.rakumod')
-rw-r--r--raku/leap/Leap.rakumod5
1 files changed, 5 insertions, 0 deletions
diff --git a/raku/leap/Leap.rakumod b/raku/leap/Leap.rakumod
new file mode 100644
index 0000000..0df3183
--- /dev/null
+++ b/raku/leap/Leap.rakumod
@@ -0,0 +1,5 @@
+unit module Leap;
+
+sub is-leap-year ($year) is export {
+    $year %% 4 && ($year !%% 100 || $year %% 400);
+}