Packages

t

scala.collection.generic

CanBuildFrom

trait CanBuildFrom[-From, -Elem, +To] extends AnyRef

A base trait for builder factories.

From

the type of the underlying collection that requests a builder to be created.

Elem

the element type of the collection to be created.

To

the type of the collection to be created.

Annotations
@implicitNotFound( msg = ... )
Source
CanBuildFrom.scala
Since

2.8

See also

scala.collection.mutable.Builder

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

Abstract Value Members

  1. abstract def apply(): Builder[Elem, To]

    Creates a new builder from scratch.

    Creates a new builder from scratch.

    returns

    a builder for collections of type To with element type Elem.

    See also

    scala.collection.breakOut

  2. abstract def apply(from: From): Builder[Elem, To]

    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

    a builder for collections of type To with element type Elem. The collections framework usually arranges things so that the created builder will build the same kind of collection as from.