Instance Method


Applies the given difference to this collection.


func applying(_ difference: CollectionDifference<Element>) -> ContiguousArray<Element>?



The difference to be applied.

Return Value

An instance representing the state of the receiver with the difference applied, or nil if the difference is incompatible with the receiver’s state.


Complexity: O(n + c), where n is self.count and c is the number of changes contained by the parameter.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software