function validate(fallback, fn) {
	return (input, keypath) => {
		return input === undefined ? fallback : fn(input, keypath);
	};
}
@param {any} fallback
@param {(value: any, keypath: string) => any} fn
@returns {Validator}