Hacker News new | ask | show | jobs
by ChrisMarshallNY 522 days ago
Just to add some closure. This is how I'd do it in Swift:

    extension FixedWidthInteger { var isEven: Bool { 0 == 1 & self } }