From: Robert Klemme Date: 2008-11-20T16:36:16+09:00 Subject: Re: build hash by iterating On 20.11.2008 02:39, Peņa wrote: > From: Jason Lillywhite [mailto:jason.lillywhite@gmail.com] > you're indexing normally, why not use an array? I'd even go as far as to question the whole collection approach: since there is a fairly easy mathematical relationship between key and value why not just define a function that calculates value from key on demand? def f(x) 24 + 6 * x end Kind regards robert