~ninjin/julia-nix

5b243c815868740c8a21ed2ccf985c2f96323b74 — Colin Caine 2 years ago 3c0a216
follow up on #42155, avoid converting or copying a set (#42208)

1 files changed, 2 insertions(+), 0 deletions(-)

M base/abstractset.jl
M base/abstractset.jl => base/abstractset.jl +2 -0
@@ 339,6 339,8 @@ false
⊊, ⊋

⊊(a::AbstractSet, b::AbstractSet) = length(a) < length(b) && a ⊆ b
⊊(a::AbstractSet, b) = a ⊊ Set(b)
⊊(a, b::AbstractSet) = Set(a) ⊊ b
⊊(a, b) = Set(a) ⊊ Set(b)
⊋(a, b) = b ⊊ a