map<U> method

Try<U> map<U>(
  1. Method<T, U> f
)

Implementation

Try<U> map<U>(final Method<T, U> f) {
  return Try._(
    supplier: _supplier.map(f),
    recoveries: _recoveries.map((type, recovery) => MapEntry<Type, Recovery<U>>(type, recovery.map(f))),
  );
}