AssocMap

scalus.prelude.AssocMap
See theAssocMap companion object
case class AssocMap[A, B](toList: List[(A, B)])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def all(f: ((A, B)) => Boolean): Boolean
Extension method from AssocMap
def delete: AssocMap[A, B]
Extension method from AssocMap
def get: Option[B]
Extension method from AssocMap

Optionally returns the value associated with a key.

Optionally returns the value associated with a key.

Value parameters

key

the key value

Attributes

Returns

an option value containing the value associated with key in this map, or None if none exists.

def insert: AssocMap[A, B]
Extension method from AssocMap
inline def isEmpty: Boolean
Extension method from AssocMap
def keys: List[A]
Extension method from AssocMap
inline def length: BigInt
Extension method from AssocMap
def map[C](f: ((A, B)) => (A, C)): AssocMap[A, C]
Extension method from AssocMap
inline def nonEmpty: Boolean
Extension method from AssocMap
inline def size: BigInt
Extension method from AssocMap
def values: List[B]
Extension method from AssocMap

Deprecated methods

def lookup: Option[B]
Extension method from AssocMap

Attributes

Deprecated
true

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product