You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure which implementation is ideal, but Base.minmax should be fixed if IntervalSets.ordered wins in some aspect, and I think we don't have to provide our ordered function.
The text was updated successfully, but these errors were encountered:
Base.minmax
is almost the same, andIntervalSets.ordered
is not used in IntervalSets.jl itself.The only differences are type promotion and if-statement.
IntervalSets.ordered
usesifelse
.https://github.com/JuliaMath/IntervalSets.jl/blob/master/src/IntervalSets.jl#L68
But
Base.minmax
uses ternary operator_?_:_
https://github.com/JuliaLang/julia/blob/8922eaa5517536eb51eb542f4543a8c6b82fda34/base/operators.jl#L514
I'm not sure which implementation is ideal, but
Base.minmax
should be fixed ifIntervalSets.ordered
wins in some aspect, and I think we don't have to provide ourordered
function.The text was updated successfully, but these errors were encountered: