3 ms·
It does have an iterator syntax: http://golang.org/doc/go_spec.html#RangeClause http://golang.org/doc/go_spec.html#RangeClause It just wasn't used in that exam
by agl 17y ago
It does have an iterator syntax: http://golang.org/doc/go_spec.html#RangeClause http://golang.org/doc/go_spec.html#RangeClause
It just wasn't used in that example to keep the number of new constructs down.