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/scala.collection.immutable/ListMap

ListMap

scala.collection.immutable.ListMap
See theListMap companion class
objectListMap extendsMapFactory[ListMap]

This object provides a set of operations to createIterable values.

Note that each element insertion takes O(n) time, which means that creating a list map with n elements will take O(n2) time. This makes the builder suitable only for a small number of elements.

Attributes

See also

"Scala's Collection Library overview" section onList Maps for more information.

Companion
class
Source
ListMap.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
ListMap.type

Members list

Value members

Concrete methods

defempty[K,V]:ListMap[K,V]

An empty Map

An empty Map

Attributes

Source
ListMap.scala
deffrom[K,V](it:IterableOnce[(K,V)]):ListMap[K,V]

A collection of type Map generated from given iterable object.

A collection of type Map generated from given iterable object.

Attributes

Source
ListMap.scala
defnewBuilder[K,V]:ReusableBuilder[(K,V),ListMap[K,V]]

Returns a new ListMap builder

Returns a new ListMap builder

The implementation safely handles additions afterresult() without callingclear()

Type parameters

K

the map key type

V

the map value type

Attributes

Source
ListMap.scala

Inherited methods

defapply[K,V](elems: (K,V)*):ListMap[K,V]

A collection of type Map that contains given key/value bindings.

A collection of type Map that contains given key/value bindings.

Attributes

Inherited from:
MapFactory
Source
Factory.scala

Implicits

Inherited implicits

implicitdefmapFactory[K,V]:Factory[(K,V),ListMap[K,V]]

The default Factory instance for maps.

The default Factory instance for maps.

Attributes

Inherited from:
MapFactory
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