Copy

interface Copy<A>

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> Traversal<A, B>.set(b: B)

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

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.