News for hackers. Stuff that matters.
Re:Ruby’s magic underscore by sherwin on Saturday September 22, 2012 @11:30PM (#4559863)
Go has similar functionality:

If you only need the second item in the range (the value), use the blank identifier, an underscore, to discard the first:

sum := 0 for _, value := range array { sum += value }

from: http://golang.org/doc/effective_go.html#for

There are no comments on this comment yet.