elm/exercises/leap/Leap.example

6 lines
127 B
Text

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