From: Joel VanderWerf Date: 2007-08-03T00:17:02+09:00 Subject: Re: ordered hashes/ yaml? Trans wrote: .. >> but to keep this as an array, it seems nasty to step thru and read >> pairs/skip in twos thru the array: ... > YAML has a secondary type called an omap. It is supported in the syck > implementation: That still loads as an array though: require 'yaml' h = YAML.load <[["link1", "home"], ["link2", "my page"], ["link3", "logout"]]} Maybe the !!omap is useful, but the thing it loads as doesn't seem to have a #[] method (and it's not clear the data structure is any more efficient than an array): require 'yaml' h = YAML.load < undef method Anyone have any enlightenment...? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407