Hi at all,
I'm new student of Scala.
During some test that I'm doing, I have seen the class scala.collection.IndexedSeqLike.Elements
In this class there is a method: aggregate
The signature of the method is the question:
def aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B
- What's mean of z: => B ?
- What's mean of the 2 parenthesis: (z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B)
Can someone of us to explain to me?
Thanks a lot. :-)