andThen<U> method
Implementation
Result<U, E> andThen<U>(Result<U, E> Function(T value) fn) {
if (this is Ok<T, E>) {
return fn((this as Ok<T, E>).value);
}
return this as Result<U, E>;
}
Result<U, E> andThen<U>(Result<U, E> Function(T value) fn) {
if (this is Ok<T, E>) {
return fn((this as Ok<T, E>).value);
}
return this as Result<U, E>;
}