Returns a new collection difference with associations between individual elements that have been removed and inserted only once.
SDK
- Xcode 11.0+
Framework
- Swift Standard Library
Declaration
func inferringMoves() -> CollectionDifference <ChangeElement>
Available when ChangeElement conforms to Hashable.
Return Value
An collection difference with all possible moves inferred.
Discussion
Complexity: O(n) where n is the number of collection differences.