From: SpringFlowers AutumnMoon Date: 2007-09-18T21:15:32+09:00 Subject: Re: how to use tuple as hash key Stefano Crocco wrote: > > I think it's easier (and more efficient) to create a new array with the > current values of i and j at each iteration, instead of modifying one > single > array and duping it. > > for i in 1..2 > for j in 1..2 > h2[[i,j]] = "ha" > end > end that is already listed in the initial program. the main requirement is that I have a list (an array), and how do I use it as a hash key. -- Posted via http://www.ruby-forum.com/.