From: Anders Elfving Date: 2013-04-22T02:43:20+09:00 Subject: Re: Tap method : good or bad practice ? To better express the above reduce case: 1.upto(n).each_with_object({}) { |i,mem| mem[i]=i } -- Posted via http://www.ruby-forum.com/.