Arbitrary abbreviations in phobos considered ridiculous

Ary Manzana ary at esperanto.org.ar
Thu Mar 8 12:45:47 PST 2012


On 3/8/12 7:27 AM, Timon Gehr wrote:
> On 03/08/2012 03:14 AM, Ary Manzana wrote:
>> Here's something I wrote today:
>>
>> parent_ids = results.map{|x|
>> x['_source']['parent_ids']}.flatten.uniq.compact
>> Hash[Site.find(parent_ids).map{|x| [x.id, x]}]
>>
>> Or I could have written:
>>
>> Hash[
>> Site.find(
>> results.map{|x| x['_source']['parent_ids']}.flatten.uniq.compact
>> ).map{|x| [x.id, x]}
>> ]
>>
>> No abbreviation at all,
>
> uniq.

Oh, right, I didn


More information about the Digitalmars-d mailing list