arrow-optics / arrow.optics.extensions / OptionEach

OptionEach

@extension interface OptionEach<A> : Each<Option<A>, A>

Each instance definition for Option.

Inherited Properties

every open val <T> Lens<T, S>.every: Traversal<T, A>
DSL to compose Each with a Lens for a structure S to see all its foci Aopen val <T> Iso<T, S>.every: Traversal<T, A>
DSL to compose Each with a Iso for a structure S to see all its foci Aopen val <T> Prism<T, S>.every: Traversal<T, A>
DSL to compose Each with a Prism for a structure S to see all its foci Aopen val <T> Optional<T, S>.every: Traversal<T, A>
DSL to compose Each with a Optional for a structure S to see all its foci Aopen val <T> Setter<T, S>.every: Setter<T, A>
DSL to compose Each with a Setter for a structure S to see all its foci Aopen val <T> Traversal<T, S>.every: Traversal<T, A>
DSL to compose Each with a Traversal for a structure S to see all its foci Aopen val <T> Fold<T, S>.every: Fold<T, A>
DSL to compose Each with a Fold for a structure S to see all its foci A

Functions

each open fun each(): Traversal<Option<A>, A>
Provide a Traversal for a structure S with focus in A