exercism-ocaml/leap/leap.ml

3 lines
85 B
OCaml
Raw Normal View History

2024-01-13 12:19:21 +01:00
let leap_year year =
(year mod 4 = 0 && year mod 100 <> 0) || year mod 400 = 0