Product Site

5.3.7.1. new (Class Method)

Returns a new empty Bag object.

If you specify size, a hint how large the new Bag object is expected to grow, this is used to optimize the initial allocation.

size must be a non-negative whole number.