From: Eric Mahurin Date: 2008-04-07T09:53:35+09:00 Subject: Re: Arbitrary mathematical relations, not just hashes ------=_Part_3896_20433998.1207529613648 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/6/08, Kelly Jones wrote: > > However, I can't easily find all items whose $color is 'red', nor all > items whose $type is 'fruit'. In other words, color() and type() > aren't full mathematical relations. > Is there a language that handles mathematical relations naturally/natively? Why "native" support? What's wrong with just a library/package/module/class that does this? If you don't find what you want with various ruby database API's out there, you could make your own data-structure for doing this. I think one of the most generic structures for holding multi dimensional/keyed data would be a kd-tree: http://en.wikipedia.org/wiki/Kd-tree In a kd-tree, data is stored and accessed by multiple dimensions (or keys). It is a great geometric data structure, but could also be used as a database. ------=_Part_3896_20433998.1207529613648--