Understanding Scala code: (-_._2)

Viewed 3719

Help me understand this Scala code:

sortBy(-_._2)

I understand that the first underscore (_) is a placeholder. I understand that _2 means the second member of a Tuple. But what does a minus (-) stand for in this code?

2 Answers
Related