addAll method

void addAll(
  1. Bag<E> items
)

Add all items into this bag.

Implementation

void addAll(Bag<E> items) => items.forEach(add);