elliotchance / orderedmap

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

Added bidirectional iterator #2

Closed elliotchance closed 4 years ago

elliotchance commented 4 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