+
Function2[Int, Int, Int]
(Int, Int) => Int
Int
reduce
(a: Int, b: Int) => a.+(b)
(a: Int, b: Int) => a + b
_ + _
seq.reduce(_ + _)
.reduce(+)
object + extends ((Int, Int) => Int) { def apply(a: Int, b: Int): Int = a + b }
Seq(1,2,3,4,5).reduce(+)
// res0: Int = 15
def +(a: Int, b: Int) = a + b
Seq(1,2,3,4,5).reduce(+)
Seq(1, 2).reduce(+)