elm/exercises/leap/Leap.example
2016-03-12 11:47:27 -05:00

6 lines
124 B
Text

module Leap (..) where
isLeapYear : Int -> Bool
isLeapYear year =
year % 4 == 0 && (year % 100 /= 0 || year % 400 == 0)