Skip to content

Commit

Permalink
feat: return set on change
Browse files Browse the repository at this point in the history
  • Loading branch information
PraneethJain committed May 30, 2024
1 parent c5d9478 commit bae143b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/StdLib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ Base.pop!(v::StdQueue) = pop_front!(v)
Base.size(v::StdSet) = (Int(cppsize(v)),)
Base.length(v::StdSet) = Int(cppsize(v))
Base.isempty(v::StdSet) = set_isempty(v)
Base.empty!(v::StdSet) = set_empty!(v)
Base.push!(v::StdSet, x) = set_insert!(v, x)
Base.empty!(v::StdSet) = (set_empty!(v); v)
Base.push!(v::StdSet, x) = (set_insert!(v, x); v)
Base.in(x, v::StdSet) = set_in(v, x)
Base.delete!(v::StdSet, x) = set_delete!(v, x)
Base.delete!(v::StdSet, x) = (set_delete!(v, x); v)

function Base.fill!(v::T, x) where T <: Union{StdVector, StdValArray, StdDeque}
StdFill(v, x)
Expand Down

0 comments on commit bae143b

Please sign in to comment.