From: Robert Dober Date: 2009-06-22T18:16:06+09:00 Subject: Re: regular expression gurus--help! On Mon, Jun 22, 2009 at 3:32 AM, David A. Black wrote: >> Is this     map(&:join)   using 1.9? > > Yes. In general, &obj in that position triggers the use of obj.to_proc > as the code block for the method call, and in 1.9 there's a built-in > Symbol#to_proc method. Sorry for highjacking the thread, but I believe it served its purpose well, already ;). Please find a more readbale "mirror" of the following text here: http://pastie.org/519985 Who feels with me that allowing you to do coll.map( &:join ) but forbidding coll.map( &:join, ", " ) is a shame. Now it is clear that the above is not correct Ruby syntax. From my experience very few people are fond of the magic dot, which would solve the problem elegantly. coll.map.join( ", " ) although in a very condensed way. coll.map( ", ", &:join ) would be an alternative I kind of dislike. Well burns down to coll.map( :join, ", ") And yes I know this is an old issue, but IIRC it has not been discussed for some time ;) Cheers Robert -- Toutes les grandes personnes ont d’abord été des enfants, mais peu d’entre elles s’en souviennent. All adults have been children first, but not many remember. [Antoine de Saint-Exupéry]