Meaning of _2 sign in scala language
scala
Solution
The `._2` selects the second element in a tuple e.g.
val t = (1,2)
t._2
so @errors in your sample appears to be a list of tuples. You can find the documentation here for Tuple2, and there are Tuple3, Tuple4 etc. classes for tuples of size 3, 4 etc. The scala package documentation shows the available Tuple types which go up to size 22.
Problem
What does the _2 mean in the following code? Where can I find the official documentation for this? ``` .. @if(errors) { <p class="error"> @errors.head._2 </p> } ... ```