isLeapYearFunc function

bool isLeapYearFunc(
  1. int y
)

Implementation

bool isLeapYearFunc(int y) => y & 3 == 0 && (y % 25 != 0 || y & 15 == 0);