summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-07-15 22:59:08 +0000
committerPaul Phillips <paulp@improving.org>2011-07-15 22:59:08 +0000
commit21c0730f7f08e7e2d236700428f3062a2d3ce0cc (patch)
treebbb9d4de1dc2812fdfd421758b9331fc7b83453d /src
parent3010da22471cda8064f629ddad24abf00675d36f (diff)
downloadscala-21c0730f7f08e7e2d236700428f3062a2d3ce0cc.tar.gz
scala-21c0730f7f08e7e2d236700428f3062a2d3ce0cc.tar.bz2
scala-21c0730f7f08e7e2d236700428f3062a2d3ce0cc.zip
Merge pull request #42 from jamie-allen/master
DocSpree
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/immutable/Stream.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/scala/collection/immutable/Stream.scala b/src/library/scala/collection/immutable/Stream.scala
index 4cb7fc43d1..c32c5b3640 100644
--- a/src/library/scala/collection/immutable/Stream.scala
+++ b/src/library/scala/collection/immutable/Stream.scala
@@ -508,7 +508,9 @@ self =>
}
-/** See #3273 and test case run/bug3273 for motivation. */
+/** A specialized, extra-lazy implementation of a stream iterator, so it can
+ * iterate as lazily as it traverses the tail.
+ */
final class StreamIterator[+A](self: Stream[A]) extends Iterator[A] {
// A call-by-need cell.
class LazyCell(st: => Stream[A]) {