MapLensFamily

case
class MapLensFamily[S1, S2, K, V](lens: LensFamily[S1, S2, Map[K, V], Map[K, V]])

A lens that views an immutable Map type can provide a mutable.Map-like API via State

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def ++=(xs: IterableOnce[(K, V)]): IndexedState[S1, S2, Map[K, V]]
def +=(elem1: (K, V), elem2: (K, V), elems: (K, V)*): IndexedState[S1, S2, Map[K, V]]
def +=(elem: (K, V)): IndexedState[S1, S2, Map[K, V]]
def --=(xs: IterableOnce[K]): IndexedState[S1, S2, Map[K, V]]
def -=(elem: K): IndexedState[S1, S2, Map[K, V]]
def -=(elem1: K, elem2: K, elems: K*): IndexedState[S1, S2, Map[K, V]]
def at(k: K): LensFamily[S1, S2, V, V]

This lens has undefined behavior when accessing an element not present in the map!

This lens has undefined behavior when accessing an element not present in the map!

def member(k: K): LensFamily[S1, S2, Option[V], Option[V]]

Allows both viewing and setting the value of a member of the map

Allows both viewing and setting the value of a member of the map

def update(key: K, value: V): IndexedState[S1, S2, Unit]

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product