Even and Odd Integers

It's definitely the case that a isDivisible(by:) can be more efficient than checking that remainder == 0 in general, so I can see a reasonable argument for adding that API. isEven seems overly specific to me.

1 Like