From: Love U Ruby Date: 2013-02-04T16:02:06+09:00 Subject: Re: Confusion with Enum#with_object block argument construct Hans Mackowiak wrote in post #1095038: > 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 Can anyone help me on my question- A. This is a but confusing for me being a new ruby student? Thanks -- Posted via http://www.ruby-forum.com/.