Instance Method

inferringMoves()

Returns a new collection difference with associations between individual elements that have been removed and inserted only once.

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.