Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.collection/BuildFrom

BuildFrom

scala.collection.BuildFrom
See theBuildFrom companion object
traitBuildFrom[-From,-A,+C]

Builds a collection of typeC from elements of typeA when a source collection of typeFrom is available. Implicit instances ofBuildFrom are available for all collection types.

Type parameters

A

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

C

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

From

Type of source collection

Attributes

Companion
object
Source
BuildFrom.scala
Graph
Supertypes
classAny
Self type
BuildFrom[From,A,C]

Members list

Value members

Abstract methods

deffromSpecific(from:From)(it:IterableOnce[A]):C

Attributes

Source
BuildFrom.scala
defnewBuilder(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 withfromSpecific is preferred because it can be lazy for lazy collections.

Attributes

Source
BuildFrom.scala

Concrete methods

deftoFactory(from:From):Factory[A,C]

Partially apply a BuildFrom to a Factory

Partially apply a BuildFrom to a Factory

Attributes

Source
BuildFrom.scala

Deprecated methods

defapply(from:From):Builder[A,C]

Attributes

Deprecated
[Since version 2.13.0]Use newBuilder() instead of apply()
Source
BuildFrom.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp