diff options
Diffstat (limited to 'src/library/scala/collection/IterableLike.scala')
-rw-r--r-- | src/library/scala/collection/IterableLike.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library/scala/collection/IterableLike.scala b/src/library/scala/collection/IterableLike.scala index ca149809b3..da18c712f5 100644 --- a/src/library/scala/collection/IterableLike.scala +++ b/src/library/scala/collection/IterableLike.scala @@ -352,6 +352,13 @@ self => override /*TraversableLike*/ def toStream: Stream[A] = iterator.toStream + /** Converts this $coll to a sequence. + * + * $willNotTerminateInf + * @return a sequence containing all the elements of this $coll. + */ + override /*TraversableOnce*/ def toSeq: Seq[A] = toList + /** Method called from equality methods, so that user-defined subclasses can * refuse to be equal to other collections of the same kind. * @param that The object with which this $coll should be compared |