Document order of elements in Set
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:
I think it would be better to explicitly document that Set class enumerates keys in the insertion order.
Updated by jeremyevans0 (Jeremy Evans) about 2 years ago
- Assignee set to knu (Akinori MUSHA)
- Status changed from Open to Assigned
I believe the fact that sets are currently insertion ordered due to the use of hash is an implementation detail, and we shouldn't document it.