On 24 Jul 2010, at 5:13 PM, Will Jessop wrote:

>>    [:a, :b, :c].inject({}) {|hash, e| hash.merge!({e => hash.size+1}) } # => 
>> {:c=>3, :b=>2, :a=>1}
> 
> OK, golf as in shorter but still readable :)

Muahaha my cunning plan has worked, I knew I'd get some bites =)  Thanks all!  
I like the ideas.

Right, now, see, I have this enterprise application to write, which I think can 
be done in under 100kLOC, let me fetch the spec...

-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran



-- 
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en.

Reply via email to