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

Method Next

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

Next returns the next value in the iteration if there is one, and reports whether the returned value is valid. Once Next returns ok==false, the iteration is over, and all subsequent calls will return ok==false.

()

Source from the content-addressed store, hash-verified

25 // Once Next returns ok==false, the iteration is over,
26 // and all subsequent calls will return ok==false.
27 Next() (item T, ok bool)
28}
29
30// ResettableIterator supports to reset the iterator

Callers 15

TestIteratorFunction · 0.65
TestSliceIteratorFunction · 0.65
TestRangeIteratorFunction · 0.65
TestChannelIteratorFunction · 0.65
ToSliceFunction · 0.65
ToChannelFunction · 0.65
TestJoinIteratorFunction · 0.65
NextMethod · 0.65
NextMethod · 0.65
NextMethod · 0.65
ReduceFunction · 0.65

Calls

no outgoing calls

Tested by 6

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