scala / 3.1 / scala / collection / specificiterablefactory.html

Trait scala.collection.SpecificIterableFactory

trait SpecificIterableFactory[-A, +C] extends Factory[A, C]

Type parameters
A

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

C

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

Supertypes
Known subtypes

Abstract methods

Source
def empty: C

Source
def newBuilder: Builder[A, C]

Concrete methods

Source
def apply(xs: A*): C

Source
def fill(n: Int)(elem: => A): C

Inherited methods

Source
def fromSpecific(it: IterableOnce[A]): C

Value parameters
it

Source collection

Returns

A collection of type C containing the same elements as the source collection it.

Inherited from Factory

Implicits

Source
implicit def specificIterableFactory: Factory[A, C]

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/collection/SpecificIterableFactory.html