Gavin Sinclair <gsinclair / soyabean.com.au> wrote: > Raise error. #to_h is clearly a method to be used with care. People > are unlikely to call it on random objects. Of course, [1,2,3,4].to_h > could be the equivalent to Hash[1,2,3,4]. But then there's the corner > case: [ [1,2], "x", [7,8], "g" ].to_h. > > I think I would insist on the input being an assoc array. And we already have Array methods that assume an associative array. m.