MCPcopy Create free account
hub / github.com/Soft/iter / Iterator

Interface Iterator

iterator.go:6–9  ·  view source on GitHub ↗

Iterator[T] represents an iterator yielding elements of type T.

Source from the content-addressed store, hash-verified

4
5// Iterator[T] represents an iterator yielding elements of type T.
6type Iterator[T any] interface {
7 // Next yields a new value from the Iterator.
8 Next() Option[T]
9}
10
11type stringIter struct {
12 input string

Callers 8

TestSliceFunction · 0.65
TestRepeatFunction · 0.65
TestTakeFunction · 0.65
TestMapFunction · 0.65
TestFuncFunction · 0.65
TestEmptyFunction · 0.65
TestOnceFunction · 0.65
TestFuseFunction · 0.65

Implementers 2

stringIteriterator.go
rangeIteriterator.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…