elm/exercises/leap/Leap.example

7 lines
127 B
Text
Raw Normal View History

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