SimpleIdentityMap

abstract class SimpleIdentityMap[K <: AnyRef, +V >: Null <: AnyRef] extends K => V

A simple linked map with eq as the key comparison, optimized for small maps. It has linear complexity for apply, updated, and remove.

Companion
object
trait K => V
class Object
trait Matchable
class Any
class Map1[K, V]
class Map2[K, V]
class Map3[K, V]
class Map4[K, V]
class MapMore[K, V]

Value members

Abstract methods

def apply(k: K): V
def forallBinding(f: (K, V) => Boolean): Boolean
def foreachBinding(f: (K, V) => Unit): Unit
def mapValuesNow[V1 >: V <: AnyRef](f: (K, V1) => V1): SimpleIdentityMap[K, V1]
def size: Int
def updated[V1 >: V <: AnyRef](k: K, v: V1): SimpleIdentityMap[K, V1]

Concrete methods

def contains(k: K): Boolean
def keys: List[K]
def map2[T](f: (K, V) => T): List[T]
def toList: List[(K, V)]
override def toString: String
Definition Classes
Function1 -> Any

Inherited methods

def andThen[A](g: V => A): K => A
Inherited from
Function1
def compose[A](g: A => K): A => V
Inherited from
Function1