Issue #992 has been updated by Daniel Luz.


Since Enumerable#each ignores the return value of the block, (~2) is a no-op. #each returns the original object (in this case, array_x), and as such you're passing the second iteration of #inject array_x, not flipped_hash. (~4) is the correct position to return a value here.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/992

----------------------------------------
http://redmine.ruby-lang.org