lift<S, T> static method

ValidatorT<S, T> lift<S, T>(
  1. Selector<S, T> mapping
)

Creates a purely input mapping validator

Lift a selector into the context of a Validator

Implementation

static ValidatorT<S, T> lift<S, T>(Selector<S, T> mapping) {
  return (S input) => Right(mapping(input));
}