LensInjector

interface LensInjector<in IN, in OUT>

Inheritors

Functions

Link copied to clipboard
open fun <R : OUT> inject(value: IN, target: R): R

Lens operation to set the value into the target. Synomym for invoke(IN, OUT)

Link copied to clipboard
abstract operator fun <R : OUT> invoke(value: IN, target: R): R

Lens operation to set the value into the target

Link copied to clipboard
open infix fun <R : OUT> of(value: IN): (R) -> R

Bind this Lens to a value, so we can set it into a target

Link copied to clipboard

Restrict the type that this Lens can inject into

Link copied to clipboard
open operator fun <R : OUT> set(target: R, value: IN): R

Lens operation to set the value into the target. Synomym for invoke(IN, OUT)