RosettaCodeData/Task/Leap-year/Q/leap-year.q
2019-09-12 10:33:56 -07:00

1 line
97 B
Text

ly:{((0<>x mod 100) | 0=x mod 400) & 0=x mod 4} / Return 1b if x is a leap year; 0b otherwise