map<B> method
Maps the success value of this exit
Implementation
Exit<B, E> map<B>(B Function(A) f) {
return switch (this) {
Success(:final value) => Success(f(value)),
Failure() => this as Exit<B, E>,
};
}
Maps the success value of this exit
Exit<B, E> map<B>(B Function(A) f) {
return switch (this) {
Success(:final value) => Success(f(value)),
Failure() => this as Exit<B, E>,
};
}