From: Hans Mackowiak Date: 2013-02-04T06:24:26+09:00 Subject: Re: Confusion with Enum#with_object block argument construct the array at with_object collects the elements but: [1,3,10,5].each_cons(2).map{|x,y| y - x} #=> [2, 7, -5] works fine too -- Posted via http://www.ruby-forum.com/.