copy

copy(toColl: Collection input);

The copy method of the List class copies entries from the receiver collection to a compatible collection passed as the toColl parameter. In this case, compatible means that the memberships of the receiver and destination collections are type-compatible.

By default, entries copied from the receiver collection are added to entries that already exist in the collection to which you copy them.