tryCopyFrom

tryCopyFrom(sourceCollection: Collection) lockReceiver, updating;

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

Exception 1312 (Class of value passed to a collection method incompatible with membership) is raised if the member types are not compatible or exception 1000 (Invalid parameter type) for dictionary types if the keys are not compatible.

2022.0.01 and higher