Copy

interface Copy<A>(source)

Functions

Link copied to clipboard
open fun <B> inside(field: Traversal<A, B>, f: Copy<B>.() -> Unit)

Declares a block in which all optics are nested within the given field. Instead of:

Link copied to clipboard
abstract infix fun <B> Setter<A, B>.set(b: B)

Changes the value of the element(s) pointed by the Setter.

Link copied to clipboard
abstract infix fun <B> Traversal<A, B>.transform(f: (B) -> B)

Transforms the value of the element(s) pointed by the Traversal.