bind<R> method

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

Implementation

Validation<R> bind<R>(Validation<R> Function(T val) f) =>
    fold((fails) => Invalid<R>(fails), (v) => f(v));