Actions
Bug #14069
closedDocument order of elements in Set
Description
Hash enumerates values in the insertion order.
Set is built on Hash so it does the same.
However, this is currently believed to be a not documented implementation detail. See:
https://stackoverflow.com/a/14468621/841064
https://stackoverflow.com/questions/10361250/does-set-in-ruby-always-preserve-insertion-order#comment13351258_10361275
https://spin.atomicobject.com/2012/09/04/when-is-a-set-better-than-an-array-in-ruby/
I think it would be better to explicitly document that Set class enumerates keys in the insertion order.
Actions
Like0
Like0Like0Like0