getOrModify

abstract fun getOrModify(source: S): Either<T, A>(source)

Get the focus of an OptionalGetter or return the original value while allowing the type to change if it does not match