Packages

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.

This type enables simple enrichment of Maps with extension methods.

Repr

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

Source
IsMap.scala
See also

scala.collection.generic.IsIterable

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IsMap
  2. IsIterable
  3. IsIterableOnce
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type A = (K, V)

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

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

    Definition Classes
    IsMapIsIterableOnce
  2. abstract 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].

    Definition Classes
    IsIterable
  3. abstract type K

    The type of keys

  4. abstract type V

    The type of values

Abstract Value Members

  1. abstract def apply(c: Repr): MapOps[K, V, [X, Y]Iterable[(X, Y)], 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]

    Definition Classes
    IsMapIsIterableIsIterableOnce
    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]].

Deprecated Value Members

  1. val conversion: (Repr) => IterableOps[A, Iterable, C]
    Definition Classes
    IsIterableIsIterableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) 'conversion' is now a method named 'apply'