IsMap

trait IsMap[Repr] extends IsIterable[Repr]

Type class witnessing that a collection type Repr has keys of type K, values of type V and has a conversion to MapOps[K, V, Iterable, C], for some types K, V and C.

Type class witnessing that a collection type Repr has keys of type K, values of type V and has a conversion to MapOps[K, V, Iterable, C], for some types K, V and C.

This type enables simple enrichment of Maps with extension methods.

Type Params
Repr

Collection type (e.g. Map[Int, String])

See also
Companion
object
class Object
trait Matchable
class Any

Type members

Types

type A = (K, V)
type C
Implicitly added by isMapLikeIsIterable

The type returned by transformation operations that preserve the same elements type (e.g.

The type returned by transformation operations that preserve the same elements type (e.g. filter, take).

In practice, this type is often Repr itself, excepted in the case of SeqView[A] (and other View[A] subclasses), where it is “only” View[A].

type K

The type of keys

The type of keys

type V

The type of values

The type of values

Inherited types

type A
Implicitly added by isMapLikeIsIterable

The type of elements we can traverse over (e.g.

The type of elements we can traverse over (e.g. Int).

Inherited from
IsIterableOnce
type C

The type returned by transformation operations that preserve the same elements type (e.g.

The type returned by transformation operations that preserve the same elements type (e.g. filter, take).

In practice, this type is often Repr itself, excepted in the case of SeqView[A] (and other View[A] subclasses), where it is “only” View[A].

Inherited from
IsIterable

Value members

Abstract methods

def apply(coll: Repr): IterableOps[A, [A] =>> Iterable[A], C]
Implicitly added by isMapLikeIsIterable

A conversion from the type Repr to IterableOps[A, Iterable, C]

A conversion from the type Repr to IterableOps[A, Iterable, C]

override def apply(c: Repr): MapOps[K, V, `<none>`, C]

A conversion from the type Repr to MapOps[K, V, Iterable, C]

A conversion from the type Repr to MapOps[K, V, Iterable, C]

Note

The third type parameter of the returned MapOps value is still Iterable (and not Map) because MapView[K, V] only extends MapOps[K, V, View, View[A]].

Definition Classes

Deprecated fields

@deprecated("\'conversion\' is now a method named \'apply\'", "2.13.0")
override val conversion: Repr => IterableOps[A, [A] =>> Iterable[A], C]
Implicitly added by isMapLikeIsIterable
Deprecated

Deprecated and Inherited fields

@deprecated("\'conversion\' is now a method named \'apply\'", "2.13.0")
override val conversion: Repr => IterableOps[A, [A] =>> Iterable[A], C]
Deprecated
Inherited from
IsIterable