Last Updated: February 25, 2016
·
419
· halan

Simple Casting out nines in Ruby

number.each_char.map(&:to_i).reduce(:+)