From: Bil Kleb Date: 2006-08-15T06:50:09+09:00 Subject: Re: A use case for an ordered hash Hal Fulton wrote: > There have been numerous occasions when I wanted an > ordered hash, but usually I can't remember to write > them down. Here's my latest one[1]: I had a string with a bunch of tagged "tolerance fields", e.g., >>1+/-10% 'tag'<< (a mini DSL?). Based on some sort of distribution function, e.g., uniform or Gaussian, I generated an array of samples for each tagged field. A regular hash was a perfect fit, samples[tag] = [ sample1, sample2, .. ] *until* another requirement came up: to present the tags in order of appearance. Later, -- Bil http://fun3d.larc.nasa.gov [1] Part of a CEV (Crew Exploration Vehicle) task