function t.numberConstrained(z,T)assert(t.number(z)and t.number(T))local P=t.numberMin(z)local E=t.numberMax(T)return function(z)local T,K=P(z)if not T then return false,K or""end local o,f=E(z)if not o then return false,f or""end return true end end

function t.numberConstrained(min, max)
	assert(t.number(min) and t.number(max))
	local minCheck = t.numberMin(min)
	local maxCheck = t.numberMax(max)
	return function(value)
		local minSuccess, minErrMsg = minCheck(value)
		if not minSuccess then
			return false, minErrMsg or ""
		end

		local maxSuccess, maxErrMsg = maxCheck(value)
		if not maxSuccess then
			return false, maxErrMsg or ""
		end

		return true
	end
end
