arrow-optics / arrow.optics / PPrism / invoke

invoke

operator fun <S, T, A, B> invoke(getOrModify: (S) -> Either<T, A>, reverseGet: (B) -> T): PPrism<S, T, A, B>

Invoke operator overload to create a PPrism of type S with focus A. Can also be used to construct Prism

Do you like Arrow?

Arrow Org
<