Andrew Hunt <andy / Toolshed.Com> writes:

>     >
>     >  n % 2 == 1
>     >  (n ^ 1) == 1
>     >
>     >would work.  Do we really need it?
>     >If I have to add odd?, I'd add even? too.
> 
> Well, even? and odd? make the intent much more explicit.
> 
> But how would you expect zero to work?

And in fact given zero? and nonzero? are methods of number, there'd
seem to be a precedent ;-)


Dave