From: Hal Fulton Date: 2006-08-13T16:04:00+09:00 Subject: Re: A use case for an ordered hash M. Edward (Ed) Borasky wrote: > > That sort of code is what Chuck Moore evolved into Forth. :) Seriously, > though, isn't there a way to do this with a single array? Store the > patterns followed by the lambdas in sequence. Find the first index that > matches the pattern and take the lambda at [index+1]? Or two parallel > arrays? I use two parallel arrays for this sort of thing a lot -- it's > easy for me to read, given my FORTRAN background. :) > Yes, I could use a single flat array... I could also program in FORTRAN... ;) Hal