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/Factory

Factory

scala.collection.Factory
See theFactory companion object
traitFactory[-A,+C]

A factory that builds a collection of typeC with elements of typeA.

This is a general form of any factory (IterableFactory,SortedIterableFactory,MapFactory andSortedMapFactory) whose element type is fixed.

Type parameters

A

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

C

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

Attributes

Companion
object
Source
Factory.scala
Graph
Supertypes
classAny
Known subtypes
objectBitSet
objectBitSet
objectBitSet
objectEnumeration.this.ValueSet
Show all

Members list

Value members

Abstract methods

Value parameters

it

Source collection

Attributes

Returns

A collection of typeC containing the same elements as the source collectionit.

Source
Factory.scala

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
Factory.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp