mapSuccess

open fun <U> mapSuccess(mapper: (T) -> U): Result<U>

Map this result success value. If the mapper throws an exception, this exception will be converted to TerminalException and return a new failed Result.