Companion

Functions

Link copied to clipboard
fun <A> filter(predicate: (A) -> Boolean): OptionalGetter<A, A>

OptionalGetter to itself if it satisfies the predicate.

Link copied to clipboard
fun <S> id(): PIso<S, S, S, S>
Link copied to clipboard
operator fun <S, T, A> invoke(getOrModify: (source: S) -> Either<T, A>): POptionalGetter<S, T, A>

Invoke operator overload to create an OptionalGetter of type S with focus A.