Re: hash design problem: both string and int[] keys

2012-11-22 Thread Charles Hixson
Charles Hixson wrote: Charles Hixson wrote: Ali Çehreli wrote: On 11/20/2012 11:39 AM, Charles Hixson wrote: > I'm trying to figure out how to construct an associative array whose > keys will be a combination of strings and immutable int[]'s, but every > approach I've looked at has run into pr

Re: hash design problem: both string and int[] keys

2012-11-20 Thread Charles Hixson
Charles Hixson wrote: Ali Çehreli wrote: On 11/20/2012 11:39 AM, Charles Hixson wrote: > I'm trying to figure out how to construct an associative array whose > keys will be a combination of strings and immutable int[]'s, but every > approach I've looked at has run into problems. Can you show s

Re: hash design problem: both string and int[] keys

2012-11-20 Thread Jonathan M Davis
On Tuesday, November 20, 2012 12:42:50 Charles Hixson wrote: > > > It should be relatively > > > easy, as strings are really just an immutable list of ints, > > > > A list of dchars is more accurate of course, but yes, dchar can be > > casted to int. > > Well, longs anyway. Which is a minor pr

Re: hash design problem: both string and int[] keys

2012-11-20 Thread Charles Hixson
Ali Çehreli wrote: On 11/20/2012 11:39 AM, Charles Hixson wrote: > I'm trying to figure out how to construct an associative array whose > keys will be a combination of strings and immutable int[]'s, but every > approach I've looked at has run into problems. Can you show some code? Sorry, I'm

Re: hash design problem: both string and int[] keys

2012-11-20 Thread Ali Çehreli
On 11/20/2012 11:39 AM, Charles Hixson wrote: > I'm trying to figure out how to construct an associative array whose > keys will be a combination of strings and immutable int[]'s, but every > approach I've looked at has run into problems. Can you show some code? > It should be relatively > easy

hash design problem: both string and int[] keys

2012-11-20 Thread Charles Hixson
I'm trying to figure out how to construct an associative array whose keys will be a combination of strings and immutable int[]'s, but every approach I've looked at has run into problems. It should be relatively easy, as strings are really just an immutable list of ints, but I haven't been able