elliotchance / orderedmap

🔃 An ordered map in Go with amortized O(1) for Set, Get, Delete and Len.
MIT License
849 stars 63 forks source link

Added bidirectional iterator #2

Closed elliotchance closed 5 years ago

elliotchance commented 5 years ago

The new methods Front() and Back() can be used to bidirectionally iterate over the elements. If the map is changing while the iteration is in-flight it may produce unexpected behavior.


This change is Reviewable