On Mon, Jan 07, 2002 at 01:56:14AM +0900, Michal Rokos wrote: > Once again: > h = {1=>[2,3],4=>[5,6]} > a = h.to_a # gives [1,[2,3]],[4,[5,6]]] > a.to_h # should give h! - and this isn't now Of course, you could just do: class Array def to_h Hash[*self] end end ...and don't forget to add it to your xarray.rb. ;-) Massimiliano