From: Hal Fulton Date: 2006-08-15T09:20:30+09:00 Subject: Re: A use case for an ordered hash Bil Kleb wrote: > > 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 See, guys? An ordered hash in Ruby would help support human space exploration! :) /me ponders and RCR and a Dyson sphere design Hal