diff --git a/src/helpers.jl b/src/helpers.jl index 0f06bb6d3..3f7998533 100644 --- a/src/helpers.jl +++ b/src/helpers.jl @@ -113,6 +113,10 @@ nonnumeric(x) = NonNumeric(x) Base.print(io::IO, n::NonNumeric) = print(io, n.x) Base.isless(n1::NonNumeric, n2::NonNumeric) = isless(n1.x, n2.x) +Base.isless(n1::NonNumeric, n2) = isless(n1.x, n2) +Base.isless(n1, n2::NonNumeric) = isless(n1, n2.x) +Base.typemax(::Type{NonNumeric{T}}) where T = typemax(T) +Base.typemin(::Type{NonNumeric{T}}) where T = typemin(T) struct Verbatim{T} x::T