Here are the definitions of the function:
Scala:
aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
Spark RDD: