From: Brian Candler Date: 2010-04-01T23:10:57+09:00 Subject: Re: Weird hash key: what am I asking Ruby to do? Aldric Giacomoni wrote: > So.. In the first example, the hash key is 'lambda { x } => 5' . > What on earth does that even mean? You can omit the hash braces in the last arg of a method call, i.e. fn(a=>b, c=>d) is short for fn({a=>b, c=>d}) foo[bar] is also a method call. It's short for foo.[](bar) irb(main):001:0> h = {} => {} irb(main):002:0> h[1=>2] = 3 => 3 irb(main):003:0> h => {{1=>2}=>3} -- Posted via http://www.ruby-forum.com/.