7 ms·
Scala overloads underscore in various ways, my favorite being: val emails = users.map(_.email) Unlikely that will make its way into Java anytime soon, if
by virtualwhys 8y ago
Scala overloads underscore in various ways, my favorite being:
val emails = users.map(_.email)
Unlikely that will make its way into Java anytime soon, if ever, but it would be a nice enhancement -- being forced to pepper your code with lambda expressions a la `x => x.foo` is annoying when the alternative `_.foo` conveys the same meaning.