Ali Çehreli:
I still like that solution. :) Even if it's not spelled out to be correct in the spec, I can't imagine a hash table implementation where byKey and byValue don't iterate in lock step.
But in the long term ignoring what's present or missing in the specs is a bad idea.
I wrote the following Expander range as an exercise.
See also: https://d.puremagic.com/issues/show_bug.cgi?id=5489 https://d.puremagic.com/issues/show_bug.cgi?id=7957 Bye, bearophile