ruby each_with_object

Developer from somewhere

each_with_object has the same effects as an inject, just the parameter order is reversed, each_with_object has (element,accumulator), and you don’t need to return the object.