- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Where's Collection?
Sun, 2011-04-03, 17:44
Hi,
I have a deprecation message that I should use Iterable instead of
Collection, and I believe it would work fine, but want to just see
that Collection does nothing more than extend Iterable now, or is a
type alias for Iterable. But I can't find it. It isn't mentioned in
the 2.8 Scaladoc and I can't find it in the source. it must be in
there somewhere. Anyone know where it is?
Thanks.
Bill
----
Bill Venners
Artima, Inc.
http://www.artima.com
Sun, 2011-04-03, 18:07
#2
Re: Where's Collection?
Hi Paul,
Ah, thanks. I looked in Predef but forgot to look in the package object.
Bill
On Sun, Apr 3, 2011 at 9:51 AM, Paul Phillips wrote:
> On 4/3/11 9:44 AM, Bill Venners wrote:
>>
>> Hi,
>>
>> I have a deprecation message that I should use Iterable instead of
>> Collection, and I believe it would work fine, but want to just see
>> that Collection does nothing more than extend Iterable now, or is a
>> type alias for Iterable. But I can't find it. It isn't mentioned in
>> the 2.8 Scaladoc and I can't find it in the source. it must be in
>> there somewhere. Anyone know where it is?
>
> It's in the scala package object.
>
> @deprecated("use Iterable instead") type Collection[+A] = Iterable[A]
> @deprecated("use Iterable instead") val Collection = Iterable
>
On 4/3/11 9:44 AM, Bill Venners wrote:
> Hi,
>
> I have a deprecation message that I should use Iterable instead of
> Collection, and I believe it would work fine, but want to just see
> that Collection does nothing more than extend Iterable now, or is a
> type alias for Iterable. But I can't find it. It isn't mentioned in
> the 2.8 Scaladoc and I can't find it in the source. it must be in
> there somewhere. Anyone know where it is?
It's in the scala package object.
@deprecated("use Iterable instead") type Collection[+A] = Iterable[A]
@deprecated("use Iterable instead") val Collection = Iterable