Closed thiagokokada closed 2 months ago
Close issue: https://github.com/elliotchance/orderedmap/issues/40.
This PR implements Iterator() and ReverseIterator() methods, that allow usage with for ... range in Go 1.23:
Iterator()
ReverseIterator()
for ... range
for key, value := range m.Iterator() { fmt.Println(key, value) } for key, value := range m.ReverseIterator() { fmt.Println(key, value) }
This change is
Close issue: https://github.com/elliotchance/orderedmap/issues/40.
This PR implements
Iterator()
andReverseIterator()
methods, that allow usage withfor ... range
in Go 1.23:This change is