elm/exercises/leap/Leap.example.elm
2016-12-17 17:29:40 -05:00

6 lines
129 B
Elm

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