Prefer `each_with_object` or `inject`.