Add `OrderedSet` to stdlib

Can we have an OrderedSet class in collections?

An OrderedSet is a set that maintains insertion ordering.

The current workaround is to use dict but I thought that using a dictionary as a set was too ugly to use in my library so I wrote an OrderedSet wrapper around it. It would be nice to have collections.OrderedSet be a thing though.

 
Relevant:

1 Like

… using a dictionary as a set was too ugly to use in my library …

My guess is you might need a bit more rationale if really want to add this to the Standard Library. :slight_smile:

And Merry Christmas!