From: Austin Ziegler Date: 2007-02-28T10:37:27+09:00 Subject: Re: Potential RCR?: Array#join with block On 2/27/07, Farrel Lifson wrote: > Does anyone think Array#join with a block is a potential RCR? > [1,3,2,4].join("-"){|sep,a,b| sep + (a > b ? ">" : "<")} > which would produce > "1-<3->2-<4" > I thought it would be nice to make the join string a bit more dynamic. > > I've got working C code which I'm just testing/optimising further at > the moment. Is it worthy of submission as an RCR to trunk? I'd dig through the archives; I'm pretty sure that Matz has weighed in on this in the past; I don't think it's a good idea, myself. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca