each is idiomatic in Ruby for traversing enumerables. Also decreases chances of side-effects.