Another iterator proposal from the Go team

user-defined iteration using range over func values · Discussion #56413 · golang/go.
There is no standard way to iterate over a sequence of values in Go. For lack of any convention, we have ended up with a wide variety of approaches. Each implementation has done what made the most …

Read in full here:

This thread was posted by one of our members via one of our news source trackers.