From: Rick DeNatale Date: 2006-08-04T11:08:24+09:00 Subject: Re: New Ruby Culture T-Shirts! On 8/3/06, Patrick Hurley wrote: > On 8/3/06, Matt Todd wrote: > > I also added some 10.method(:+).call(5) shirts :) > > > > While I can appreciate the method to proc oddness, I think expressions > that actual go some where are more fun (quickly contrived): > > [7,8,-1,10].inject(""){|a,b|a+=((b+51)*2+~b[0]).chr} > [19,7,26,32].inject("") {|a,b| a+=(90+b).chr} > [0,24,9,26].inject("") { |b,c| b += (c+95).chr } Better to change those to ... {|a, b| a+....} no need for the += -- Rick DeNatale