Creates a validator from predicate
static Validator<S> that<S>(Predicate<S> predicate, {required dynamic error}) { return (s) => predicate(s) ? Right(s) : Left([error]); }