map<R> method

Validation<R> map<R>(
  1. R f(
    1. T val
    )
)

Implementation

Validation<R> map<R>(R Function(T val) f) =>
    fold((err) => Invalid<R>(err), (v) => Valid(f(v)));