borrowInto

abstract fun borrowInto(destination: MutableCollection<E>, count: Int)

Borrow count objects and add them into destination. The order of addition is not permitted.

Parameters

destination

The collection to receive objects.

count

The count of objects to borrow

Throws

if count is negative