MCPcopy Create free account
hub / github.com/benbjohnson/immutable / Iterator

Method Iterator

immutable.go:810–814  ·  view source on GitHub ↗

Iterator returns a new iterator for the map.

()

Source from the content-addressed store, hash-verified

808
809// Iterator returns a new iterator for the map.
810func (m *Map[K, V]) Iterator() *MapIterator[K, V] {
811 itr := &MapIterator[K, V]{m: m}
812 itr.First()
813 return itr
814}
815
816// MapBuilder represents an efficient builder for creating Maps.
817type MapBuilder[K, V any] struct {

Callers 1

IteratorMethod · 0.45

Calls 2

assertFunction · 0.85
FirstMethod · 0.45

Tested by

no test coverage detected