Update the set, removing any elements from other which are in
        the set.
        @param other: the collection of items with which to update the set
        @type other: Set object
323904
def difference_update(self, other):
        
        if not isinstance(other, Set):
            raise ValueError('other must be a Set instance')
        if self is other:
            self.items = []
        else:
            for item in other.items:
                self.discard(item)
465540
public void set(LongIntSortedVector other) {
        this.used = other.used;
        this.indices = LongArrays.copyOf(other.indices);
        this.values = IntArrays.copyOf(other.values);
    }
28183
def merge(self, other):
        
        for child_name, child in other.children.items():
            self.add_child(child_name, child)
1107261
def update(other_hash)
      other_hash.each_pair { |key, value| regular_writer(convert_key(key), convert_value(value)) }
      self
    end
1280635
def _update(self, other):
        
        for key, value in other.items():
            self[key] = value
447785
def update(self, *iterables):
        """"""
        _set = self._set
        values = set(chain(*iterables))
        if (4 * len(values)) > len(_set):
            _list = self._list
            _set.update(values)
            _list.clear()
            _list.update(_set)
        else:
            _add = self.add
            for value in values:
                _add(value)
        return self
116465
def merge!(other)
      self.class.coerce(other).to_h.each { |name, values| set name, values }
    end
574367
def issuperset(self, other):
        

        if not isinstance(other, Set):
            raise ValueError('other must be a Set instance')
        for item in other.items:
            if not item in self.items:
                return False
        return True
1006567
def merge(self, other):
        
        for key, value in other.items():
            if not key in self:
                self[key] = value
            elif isinstance(value, (list, tuple)):
                self[key] += value
            elif isinstance(value, OrderedSet):
                if isinstance(self[key], str):
                    self[key] = OrderedSet([self[key]])
                elif not isinstance(self[key], OrderedSet):
                    self[key] = OrderedSet(self[key])
                self[key] |= value
            else:
                self[key] = value
        return self
1321854
public void putAll(FlexiBean other) {
        if (other.size() > 0) {
            if (data == Collections.EMPTY_MAP) {
                data = new LinkedHashMap<>(other.data);
            } else {
                data.putAll(other.data);
            }
        }
    }
1373510
public void copyFrom(Frame<ValueType> other) {
        lastUpdateTimestamp = other.lastUpdateTimestamp;
        slotList = new ArrayList<>(other.slotList);
        isTop = other.isTop;
        isBottom = other.isBottom;
    }
1058115
def intersection_update(self, other):
        
        ivs = list(self)
        for iv in ivs:
            if iv not in other:
                self.remove(iv)
687594
def union_update(self, other, ignore_conflicts=False):
        """"""
        if not ignore_conflicts:
            ensure_compatible(self, other)
        self._objects |= other._objects
        self._properties |= other._properties
        self._pairs |= other._pairs
60800
public void remove(BitSet other)
    {
        int idx = Math.min(wlen, other.wlen);
        long [] thisArr = this.bits;
        long [] otherArr = other.bits;
        while (--idx >= 0)
        {
            thisArr[idx] &= ~otherArr[idx];
        }
    }
428153
def otherrole(self, otherrole):
        
        if otherrole is not None:
            self._el.set('ROLE', 'OTHER')
            self._el.set('OTHERROLE', otherrole)
20492
public UpdateDescription merge(@Nullable final UpdateDescription otherDescription) {
    if (otherDescription != null) {
      for (final Map.Entry<String, BsonValue> entry : this.updatedFields.entrySet()) {
        if (otherDescription.removedFields.contains(entry.getKey())) {
          this.updatedFields.remove(entry.getKey());
        }
      }
      for (final String removedField : this.removedFields) {
        if (otherDescription.updatedFields.containsKey(removedField)) {
          this.removedFields.remove(removedField);
        }
      }

      this.removedFields.addAll(otherDescription.removedFields);
      this.updatedFields.putAll(otherDescription.updatedFields);
    }

    return this;
  }
499427
def update(self, other):
        
        if other.model._meta.abstract:
            self.local_fields.update(other.local_fields)
        self.fields.update(other.fields)