From: "F. Senault" Date: 2006-12-21T22:10:04+09:00 Subject: Re: Common point puzzle Le 21 d�cembre � 13:21, Bil Kleb a �crit : > William James wrote: >> >> What is the layout of the array? Something like this? >> >> [ [x1,y1,z1], [x2,y2,z2] ... ] > > No, not currently, but it could be made to look that way > with some zip action. > > Currently, each grid is in a separate hash that contains > variable_name => [ array of values ] Couldn't you make three hashes with the structure h["#{x}x#{y}"] = z ? After that, you get the keys of the coarse grid and fetch the datapoints of the others directly. If you format the x and y in the hash key, you can even order them i�f needed... Fred -- Do you know how far this has gone ? Just how damaged have I become ? When I think I can overcome It runs even deeper Everything that matters is gone All the hands of hope have withdrawn Could you try to help me hang on ? (Nine Inch Nails, Even Deeper)