From: Pit Capitain Date: 2003-06-07T07:15:35+09:00 Subject: Re: [RCR] join block On 7 Jun 2003 at 6:12, Joel VanderWerf wrote: > I'm thinking the return value of the block should be used in the same > way as the argument to #join would be used, as in: > > [1,2,3].join(" < ") > > (This is by analogy with sub("x","y") and sub("x") {"y"}.) > > If that's the case, then the block should only be called on successive > pairs. > > But maybe my intuition about how block return values are used is wrong. Maybe, but I, too, would like to use the block form as you suggested. BTW: I think this came up a couple of weeks ago on ruby-talk. Regards, Pit