From: Clifford Heath Date: 2012-07-29T08:43:05+09:00 Subject: [ruby-core:46845] Re: [ruby-trunk - Feature #6808] Implicit index for enumerations The inconsistency between operations over Arrays and Hashes isn't always avoidable, but consider: h = Hash[1, 2, 3, 4, 5, 6] a = [1, 2, 3, 4, 5, 6] h[3] => 4 h.detect{|k, v| k == 3 } #=> [3, 4] a[3] #=> 3 a.detect{|v| v == 3 } #=> 3 Surely the block passed to Array#detect should receive the index, and the result of a Hash#detect should be a value, not a [key, value] pair? I don't expect this to be changed, but perhaps it might inform proposed changes. Clifford Heath.