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

Builder

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CanBuildFrom
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. 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.

    Attributes
    abstract
    See also

    scala.collection.breakOut

  2. 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.

    Attributes
    abstract