mapFuture<R> method

Future<Validation<R>> mapFuture<R>(
  1. Future<R> f(
    1. T val
    )
)

Implementation

Future<Validation<R>> mapFuture<R>(Future<R> Function(T val) f) =>
    fold((err) => Invalid<R>(err).toFuture(), (v) => f(v).then((value) => Valid(value)));