From: Matt Maycock Date: 2004-10-21T00:00:35+09:00 Subject: Re: hash << You'd have to make that a = enum.inject(Hash.new) {|h, f| h[k(f)] = v(f) h } -- my general desire is to have code be a single expression when I write code. just the way I work :-) ~Me! On Wed, 20 Oct 2004 23:35:25 +0900, Brian Candler wrote: > > for some odd reason, > > a = enum.inject(Hash.new) {|h, f| > > h << k(f) << v(f) > > } > > just `feels' better to me. > > Feels better than > > h[k(f)] = v(f) > > ? > > -- There's no word in the English language for what you do to a dead thing to make it stop chasing you.