scala.collection.immutable.Stream

class StreamCanBuildFrom

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

class StreamCanBuildFrom[A]
extends GenericCanBuildFrom[A]
The factory for streams.
Notes
Methods such as map/flatMap will not invoke the Builder factory, but will return a new stream directly, to preserve laziness. The new stream is then cast to the factory's result type. This means that every CanBuildFrom that takes a Stream as its From type parameter must yield a stream as its result parameter. If that assumption is broken, cast errors might result.
Methods inherited from GenericCanBuildFrom
apply, apply
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf