Forgot about the even? method. A nice one for
readability.
Most of the changes here are just awareness of
useful ruby library methods like none? and
reduce. Also, the ternary expression
<condition> ? <if-true> : <else>
is useful in a lot of contexts.