minfinite_scalar(a::T, b::T) where {T} = isfinite(a) ? (b < a ? b : a) : b
maxfinite_scalar(a::T, b::T) where {T} = isfinite(a) ? (b > a ? b : a) : b
minfinite_scalar(a::T, b::T) where {T<:Union{Integer,FixedPoint}} = b < a ? b : a
maxfinite_scalar(a::T, b::T) where {T<:Union{Integer,FixedPoint}} = b > a ? b : a
Reformatted:
minfinite_scalar(a::T, b::T) where {T} = isfinite(a) ? (b < a ?b : a : b
maxfinite_scalar(a::T, b::T) where {T} = isfinite(a) ? (b > a ?b : a : b
minfinite_scalar(a::T, b::T) where {T <: Union{Integer,FixedPoint} = b< a ? b : a
maxfinite_scalar(a::T, b::T) where {T <: Union{Integer,FixedPoint} = b> a ? b : a
In short: missing brackets, no spaces between variable and operator.
Original:
Reformatted:
In short: missing brackets, no spaces between variable and operator.