summary refs log tree commit diff stats
path: root/raku/leap/Leap.rakumod
blob: 0df3183141992bbac61debf2a0b2aadaf6a7faf6 (plain) (blame)
1
2
3
4
5
unit module Leap;

sub is-leap-year ($year) is export {
    $year %% 4 && ($year !%% 100 || $year %% 400);
}