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>(source)

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