arrow-optics / arrow.optics / POptional / invoke
operator fun <S, T, A, B> invoke(getOrModify: (source: S) -> Either<T, A>, set: (source: S, focus: B) -> T):
POptional
<S, T, A, B>
Invoke operator overload to create a POptional of type S
with focus A
.
Can also be used to construct Optional
Do you like Arrow?
✖