Scala allows underscores, and sequential underscores refer to the next element, so you can do e.g.
list(1, 2, 3, 4).reduce(_ + _) == 10 list(1, 2, 3, 4).reduce(_ + _) == 10 list(1, 2, 3, 4).reduce{print(_) + _} == 10
Use it if you or your language hasn't defined such a function: list(1, 2, 3, 4).reduce{it:= _; println(it); it + _} == 10
In fact, any name for it will do.