Packages

c

scala.collection.immutable.Stream

StreamCanBuildFrom

class StreamCanBuildFrom[A] extends GenericCanBuildFrom[A]

The factory for streams.

Source
Stream.scala
Note

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StreamCanBuildFrom
  2. GenericCanBuildFrom
  3. CanBuildFrom
  4. AnyRef
  5. Any
Implicitly
  1. by CollectionsHaveToParArray
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StreamCanBuildFrom()

Value Members

  1. def apply(): Builder[A, Stream[A]]

    Creates a new builder from scratch

    Creates a new builder from scratch

    returns

    the result of invoking the newBuilder method of this factory.

    Definition Classes
    GenericCanBuildFromCanBuildFrom
  2. def apply(from: Stream.Coll): Builder[A, Stream[A]]

    Creates a new builder on request of a collection.

    Creates a new builder on request of a collection.

    from

    the collection requesting the builder to be created.

    returns

    the result of invoking the genericBuilder method on from.

    Definition Classes
    GenericCanBuildFromCanBuildFrom
  3. def toParArray: ParArray[T]
    Implicit
    This member is added by an implicit conversion from StreamCanBuildFrom[A] to CollectionsHaveToParArray[StreamCanBuildFrom[A], T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (StreamCanBuildFrom[A]) ⇒ GenTraversableOnce[T] is in scope.
    Definition Classes
    CollectionsHaveToParArray