RosettaCodeData/Task/Leap-year/Q/leap-year.q
2023-07-01 13:44:08 -04: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