mapOrElseForOption
Maps a Option<T>
to U
by applying transformer to a contained Some(T)
value in input,
or a recoverer function to a contained None
value in input.
This function can be used to unpack a successful result while handling an error.
function mapOrElseForOption<T, U>(
input: Option<T>,
recoverer: RecoveryFn<U>,
transformer: TransformFn<T, U>,
): U;