elm/exercises/leap/Leap.example

7 lines
124 B
Text
Raw Normal View History

2016-03-11 11:14:24 +00:00
module Leap (..) where
isLeapYear : Int -> Bool
isLeapYear year =
year % 4 == 0 && (year % 100 /= 0 || year % 400 == 0)