At
dev.constructive.eo.optics.At
object At
Monocle's At as a plain constructor object — NOT a typeclass. At(k) builds an ordinary total Lens from a Map[K, V] to the Option[V] at key k: replacing with Some(v) inserts or updates, replacing with None deletes the key. The Lens laws hold for every key (get-replace, replace-get, replace-replace). When you only want to touch an EXISTING value — never insert — use Index, whose focus is the bare V.
Attributes
Members list
In this article