From: Farrel Lifson Date: 2007-03-09T05:58:48+09:00 Subject: Re: [ ruby-Patches-9055 ] Dynamic Array#join with block On 06/03/07, Nobuyoshi Nakada wrote: > It sounds like sep can't be omitted. I guess it might be nice > if ary.join(*seps) yields a, b, *seps. I've modified the patch so that it is now called with the separator being optional and following the two elements that will be joined. [1,3,2,4].join{|a,b| a > b ? ">" : "<"} =>"1<3>2<4" or [1,3,2,4].join("-"){|a,b,sep| sep + (a > b ? ">" : "<")} =>"1-<3>-2-<4" Farrel