Even though the changes aren't used by anything, this was from intermediary work for multiple localvars so I thought it might be useful to keep around.
Previously, if a value was re-inserted into OrderedHash it would
duplicate the value in the ordering list. In addition to fixing that,
there is now an exposed way to iterate through the ordering.
Tests are also added to test this functionality correctly.
Even though the changes aren't used by anything, this was from intermediary work for multiple localvars so I thought it might be useful to keep around.
Previously, if a value was re-inserted into OrderedHash it would duplicate the value in the ordering list. In addition to fixing that, there is now an exposed way to iterate through the ordering.
Tests are also added to test this functionality correctly.