MapPatch

zio.Differ.MapPatch
See theMapPatch companion object
sealed trait MapPatch[Key, Value, Patch]

A patch which describes updates to a map of keys and values.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MapPatch[Key, Value, Patch]

Members list

Value members

Concrete methods

def apply(oldValue: Map[Key, Value])(differ: Differ[Value, Patch]): Map[Key, Value]

Applies a map patch to a map of keys and values to produce a new map of keys and values values which represents the original map of keys and values updated with the changes described by this patch.

Applies a map patch to a map of keys and values to produce a new map of keys and values values which represents the original map of keys and values updated with the changes described by this patch.

Attributes

def combine(that: MapPatch[Key, Value, Patch]): MapPatch[Key, Value, Patch]

Combines two map patches to produce a new map patch that describes applying their changes sequentially.

Combines two map patches to produce a new map patch that describes applying their changes sequentially.

Attributes