that you can’t use immutable objects like numbers, true or false as the memo. You would think the following returns 120, but since the memo is never changed, it does not.
Full article: http://apidock.com/rails/Enumerable/each_with_object