Re: Meaning of Element methods

som-snytt <[email protected]> Wed, 30 Mar 2016 16:47:20 -0700 (PDT)
Newsgroups gmane.comp.lang.scala
Message-ID <[email protected]>
You'll find satisfying answers on 
http://stackoverflow.com/questions/tagged/scala or possibly quicker answers 
on https://gitter.im/scala/scala or the scala-user group.

The key phrases are by-name parameter and currying.

On Wednesday, March 30, 2016 at 7:04:52 AM UTC-7, Samuele Pretini wrote:
>
> 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
>
>
>    1. What's mean of  z: => B ?
>    2. 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. :-)
>

-- 
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.