scala.collection.immutable.Stream

class StreamBuilder

[source: scala/collection/immutable/Stream.scala]

class StreamBuilder[A]
extends LazyBuilder[A, Stream[A]]
A builder for streams
Notes
: This builder is lazy only in the sense that it does not go downs the spine of traversables that are added as a whole. If more laziness can be achieved, this builder should be bypassed.
Values and Variables inherited from LazyBuilder
parts
Method Summary
def result : Stream[A]
Returns collection resulting from this builder. The buffer's contents are undefined afterwards.
Methods inherited from LazyBuilder
+=, ++=, ++=, clear
Methods inherited from Builder
sizeHint, mapResult
Methods inherited from Growable
+=
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def result : Stream[A]
Returns collection resulting from this builder. The buffer's contents are undefined afterwards.
Overrides
LazyBuilder.result