map<U extends Object> method
Implementation
Result<U, E> map<U extends Object>(U Function(T) onOk) {
return switch (this) {
Ok(:final T value) => Ok(onOk(value)),
Err(:final E err) => Err(err),
};
}
Result<U, E> map<U extends Object>(U Function(T) onOk) {
return switch (this) {
Ok(:final T value) => Ok(onOk(value)),
Err(:final E err) => Err(err),
};
}