Go version
unreleased (current master)
Output of go env
in your module/workspace:
What did you do?
Read https://cs.opensource.google/go/go/+/master:src/iter/iter.go;l=122
What did you see happen?
func Pairs[V any](seq iter.Seq[V]) iter.Seq2[V, V] {
return func(yield func(V, V) bool) bool {
// a couple return true/false inside
What did you expect to see?
func Pairs[V any](seq iter.Seq[V]) iter.Seq2[V, V] {
return func(yield func(V, V) bool) {
// no return inside