-
-
Save RayMPerry/6d3d300d21818116c4f871832428bba4 to your computer and use it in GitHub Desktop.
Leap Year
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit module Leap; | |
sub is-leap-year ($year) is export { | |
return True if $_ %% 400; | |
return False if $_ %% 100; | |
return True if $_ %% 4; | |
False; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment