12 ms·
I think the cursor alternative works best with Go's syntax. it := GetAnIterator() for it.Next() { it.Value() } This still allows composition of dif
by lucian1900 5y ago
I think the cursor alternative works best with Go's syntax.
it := GetAnIterator()
for it.Next() {
it.Value()
}
This still allows composition of different iterators, for building up lazy/incremental processing.