3 ms·It’s actually even simpler, just a one-liner: for x, ok := it.Next(); ok; x, ok = it.Next() { // … }by amscanne 4y agoIt’s actually even simpler, just a one-liner: for x, ok := it.Next(); ok; x, ok = it.Next() { // … }