MCPcopy
hub / github.com/duke-git/lancet / HasNext

Method HasNext

iterator/iterator.go:22–22  ·  view source on GitHub ↗

Next checks if there is a next value in the iteration or not

()

Source from the content-addressed store, hash-verified

20type Iterator[T any] interface {
21 // Next checks if there is a next value in the iteration or not
22 HasNext() bool
23 // Next returns the next value in the iteration if there is one,
24 // and reports whether the returned value is valid.
25 // Once Next returns ok==false, the iteration is over,

Callers 7

TestIteratorFunction · 0.65
TestSliceIteratorFunction · 0.65
TestRangeIteratorFunction · 0.65
TestChannelIteratorFunction · 0.65
HasNextMethod · 0.65
HasNextMethod · 0.65
HasNextMethod · 0.65

Calls

no outgoing calls

Tested by 4

TestIteratorFunction · 0.52
TestSliceIteratorFunction · 0.52
TestRangeIteratorFunction · 0.52
TestChannelIteratorFunction · 0.52