tryCopyFrom

tryCopyFrom(sourceCollection: Collection) lockReceiver, updating;

The tryCopyFrom method of the Array class copies the values that are not present in the receiver from the collection specified in the sourceCollection parameter to the receiver.

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