SeqMap

scala.collection.immutable.SeqMap
See theSeqMap companion trait
object SeqMap extends MapFactory[SeqMap]

Attributes

Companion
trait
Source
SeqMap.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type
SeqMap.type

Members list

Value members

Concrete methods

def empty[K, V]: SeqMap[K, V]

An empty Map.

An empty Map.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Returns

an empty map of type CC[K, V]

Source
SeqMap.scala
def from[K, V](it: IterableOnce[(K, V)]^): SeqMap[K, V]

A collection of type Map generated from given iterable object.

A collection of type Map generated from given iterable object.

Type parameters

K

the type of the keys

V

the type of the values

Value parameters

it

the source collection of key-value pairs

Attributes

Returns

a new map of type CC[K, V] containing the bindings from it

Source
SeqMap.scala
def newBuilder[K, V]: Builder[(K, V), SeqMap[K, V]]

The default builder for Map objects.

The default builder for Map objects.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Returns

a new Builder that accepts key-value pairs and produces a CC[K, V]

Source
SeqMap.scala

Inherited methods

def apply[K, V](elems: (K, V)*): SeqMap[K, V]

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

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

Type parameters

K

the type of the keys

V

the type of the values

Value parameters

elems

the key-value pairs to include in the map

Attributes

Returns

a new map of type CC[K, V] containing the given elems

Inherited from:
MapFactory
Source
Factory.scala

Implicits

Inherited implicits

implicit def mapFactory[K, V]: Factory[(K, V), SeqMap[K, V]]

The default Factory instance for maps.

The default Factory instance for maps.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Returns

a Factory that builds a CC[K, V] from a collection of key-value pairs

Inherited from:
MapFactory
Source
Factory.scala