diff options
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/IterableLike.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library/scala/collection/IterableLike.scala b/src/library/scala/collection/IterableLike.scala index b64daa8df9..3e63800f2d 100644 --- a/src/library/scala/collection/IterableLike.scala +++ b/src/library/scala/collection/IterableLike.scala @@ -85,6 +85,8 @@ self => iterator.reduceRight(op) override /*TraversableLike*/ def toIterable: Iterable[A] = thisCollection + override /*TraversableLike*/ def toIterator: Iterator[A] = + iterator override /*TraversableLike*/ def head: A = iterator.next |