exercism/fsharp/leap/Leap.fs

4 lines
101 B
Forth
Raw Normal View History

2018-03-02 22:27:55 +00:00
module Leap
let leapYear (year: int): bool = year % 400 = 0 || (year % 4 = 0 && year % 100 <> 0)