Packages

trait BuildFrom[-From, -A, +C] extends Any

Builds a collection of type C from elements of type A when a source collection of type From is available. Implicit instances of BuildFrom are available for all collection types.

From

Type of source collection

A

Type of elements (e.g. Int, Boolean, etc.)

C

Type of collection (e.g. List[Int], TreeMap[Int, String], etc.)

Self Type
BuildFrom[From, A, C]
Annotations
@implicitNotFound()
Source
BuildFrom.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BuildFrom
  2. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def fromSpecific(from: From)(it: IterableOnce[A]): C
  2. abstract def newBuilder(from: From): Builder[A, C]

    Get a Builder for the collection.

    Get a Builder for the collection. For non-strict collection types this will use an intermediate buffer. Building collections with fromSpecific is preferred because it can be lazy for lazy collections.

Concrete Value Members

  1. def toFactory(from: From): Factory[A, C]

    Partially apply a BuildFrom to a Factory

Deprecated Value Members

  1. def apply(from: From): Builder[A, C]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use newBuilder() instead of apply()