tryCopy

tryCopy(toColl: Collection input): Collection;

The tryCopy method of the Array class copies the values from the receiver array to the specified target toColl collection that are not present in the target collection, and returns a reference to the target collection.

Exception 1312 (Class of value passed to a collection method incompatible with membership) is raised if the member types are not compatible.

2022.0.01 and higher