As Steve said that "..." is just an ellipsis, which indicates a variable number of parameters that are not displayed.
Go to Scaladoc and show it step by step:
def foldRight[B](z: B)(op: (B, A) β B): B
This is not significant enough. What is A? This is defined in the class Iterable(or any other class for which it is defined for):
trait Iterable[+A] extends AnyRef // Scala 2.7
trait Iterable[+A] extends Traversable[A] with GenericTraversableTemplate[A, Iterable[A][A]] with IterableLike[A, Iterable[A]] // scala 2.8
, A - . A Int:
val elems = args map Integer.parseInt
, [B]. . , , , :
elems.foldRight(0) (_ + _)
elems.foldRight[Int](0) (_ + _)
0L 0, B Long. "" 0, B String. , .
, B - Int, z - 0. , . , . , ([B]). , , , . :
val elemsFolder: ((Int, Int) => Int) => Int = elems.foldRight(0)
:
elemsFolder(_ + _)
, op, , , (B, A) => B. , , , : , z, - , , - , . A B Int, (Int, Int) => Int. "", (String, Int) => String.
, B, , z, , foldRight.
foldRight, :
def foldRight[B](z: B)(op: (B, A) => B): B = {
var acc: B = z
var it = this.reverse.elements // this.reverse.iterator on Scala 2.8
while (!it.isEmpty) {
acc = op(acc, it.next)
}
return acc
}
, , .