MapValues

data class MapValues(val valueStrategy: MappingStrategy) : MappingStrategy

Map → Map mapping: entries ride the convertEntries… seams (per-entry key/value ladders at keyed paths like prices["usd"]), selected by the (target value shape × onFail) table — e.g. prices.convertEntriesOrSkip("prices", keyFrom, keyTo, valueFrom, valueTo, { it }) { … }. Keys stay same-type in v1 (the identity lambda fills the seam's convertKey slot); different key types → Unmappable. Direct same-type values keep the container passthrough (no seam). Plain kotlin.collections.Map only; PersistentMap/ImmutableMap wrappers are deferred.

Parameters

valueStrategy

how to map each value (feeds the seam's convertValue lambda)

Constructors

Link copied to clipboard
constructor(valueStrategy: MappingStrategy)

Properties

Link copied to clipboard