3 ms·
more accurately it's for index := range list {} and for index, value := range list {} Yes, these 2 version do perform very similarly, you are just ignor
by Vendan 9y ago
more accurately it's
for index := range list {}
and
for index, value := range list {}
Yes, these 2 version do perform very similarly, you are just ignoring the second return value in the first version, i.e.:
for index, _ := range list {}