During reading Scala documentation i confused with some functions signature:
def corresponds[B](that: GenSeq[B])(p: (T, B) ⇒ Boolean): Boolean
So, what does exactly this mean?
(p: (T, B) ⇒ Boolean)
It means p
is a function taking two arguments of type T
and B
and returning Boolean
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With