- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
scaladoc notation
Sat, 2009-03-21, 17:43
Is there FAQ I can go to that could explain the scaladoc notations? I'm don't
come from a field where neither this:
intersect [B >: A](that : List[B]) : List[B]
nor this:
flatMap [B](f : (A) => Iterable[B]) : List[B]
ever show up.
Based on I what I know of the language I have a wishy-washy feel for what those
snippets state. But I would rather understand what I am reading than have this
nagging uncertainty.
Thanks.
Sat, 2009-03-21, 20:07
#2
Re: scaladoc notation
I am not sure what you a referring to. This is no special scaladoc notation, it's as I see it pretty much the signature of the mentioned methods.
[B >: A] means B is a supertype of A
f : (A)=>Iterable[B] is a function with a parameter of type A and a return parameter Iterable[B]
But I am not sure at all that I answered your question.
Why did you remove the complete context? I guessed its taken from class List[A].
Kind regards,
Jan
2009/3/21 kxen <biznezonly@mac.com>
[B >: A] means B is a supertype of A
f : (A)=>Iterable[B] is a function with a parameter of type A and a return parameter Iterable[B]
But I am not sure at all that I answered your question.
Why did you remove the complete context? I guessed its taken from class List[A].
Kind regards,
Jan
2009/3/21 kxen <biznezonly@mac.com>
Is there FAQ I can go to that could explain the scaladoc notations? I'm don't
come from a field where neither this:
intersect [B >: A](that : List[B]) : List[B]
nor this:
flatMap [B](f : (A) => Iterable[B]) : List[B]
ever show up.
Based on I what I know of the language I have a wishy-washy feel for what those
snippets state. But I would rather understand what I am reading than have this
nagging uncertainty.
Thanks.
2009/3/21 kxen <biznezonly@mac.com>
--
Thanks,
-Vlad