Replaces the contents of ‘self` with the contents of the given enumerable object and returns `self`.
set = Weak::Set[1, :c, :s] #=> #<Weak::Set {1, :c, :s}> set.replace([1, 2]) #=> #<Weak::Set {1, 2}> set #=> #<Weak::Set {1, 2}>
Returns:
# File 'lib/weak/set.rb', line 202