Merge the collection with the given items.

        :param items: The items to merge
        :type items: list or Collection

        :rtype: Collection
4063
def merge(self, items):
        
        if isinstance(items, BaseCollection):
            items = items.all()

        if not isinstance(items, list):
            raise ValueError('Unable to merge uncompatible types')

        self._items += items

        return self
394887
def append(self, item):
        
        if item in self:
            self.items[item[0]].append(item[1])
        else:
            self.items[item[0]] = [item[1]]
1119385
public ListBuilder<T> add(T... items) {
        list.addAll(Arrays.asList(items));
        return this;
    }
36959
def set_items(self, items):
        
        self.adapter.clear()
        self.adapter.addAll(items)
37998
def merge(cls, trees):
        
        first = trees[0]
        for tree in trees:
            first.update(tree)
        return first
2225
public function merge(array $items)
    {
        $this->items = $this->arrayMergeRecursive($this->items, $items);
        $this->nestedKeyCache = [];
    }
843911
def _combine_sets(self, sets, final_set):
        
        if self._has_sortedsets:
            self.cls.get_connection().zinterstore(final_set, list(sets))
        else:
            final_set = super(ExtendedCollectionManager, self)._combine_sets(sets, final_set)
        return final_set
988300
public void setItems(Map<String, String> items) {

        clearItems();
        m_items = items;
        for (Map.Entry<String, String> entry : items.entrySet()) {
            addOption(entry.getKey(), entry.getValue());
        }
    }
930648
public void setItems(java.util.Collection<SdkType> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<SdkType>(items);
    }
616027
public static final <T> void remove(Collection<T> collection, T... items)
    {
        for (T t : items)
        {
            collection.remove(t);
        }
    }
283375
public void setItems(java.util.Collection<java.util.Map<String,AttributeValue>> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        java.util.List<java.util.Map<String,AttributeValue>> itemsCopy = new java.util.ArrayList<java.util.Map<String,AttributeValue>>(items.size());
        itemsCopy.addAll(items);
        this.items = itemsCopy;
    }
1174353
public function merge($items): CollectionInterface
    {
        return $this->wrap(function (Iterator $data) use ($items) {
            yield from $data;

            if (is_iterable($items)) {
                yield from $items;
            } elseif ($items) {
                yield $items;
            }
        });
    }
683931
def _update_items(self, items):
        
        self.items = items
        self.map = {item: idx for (idx, item) in enumerate(items)}
753134
function (items) {
        var self = this;

        // Force single item into array
        if (!Tools.isArray(items)) {
          if (items instanceof Collection) {
            self.add(items.toArray());
          } else {
            push.call(self, items);
          }
        } else {
          push.apply(self, items);
        }

        return self;
      }
144211
public void setItems(java.util.Collection<VpcLink> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<VpcLink>(items);
    }
811689
public function merge(Collection $collection)
    {
        $this->requestCount += count($collection);
        foreach($collection as $item) {
            $this->add($item);
        }
    }
1178550
def dedupe(items):
    
    seen = set()
    for item in items:
        if item not in seen:
            yield item
            seen.add(item)