Hey!
I have a feature request.
I would like to be able to use a library like Difference like i would use DiffUtils where the differences are based on not only the index in the list, but also the identity of the item. This way i could receive DiffOperations which are not only Add/Remove/Move, but also Update. Not sure if it would be possible to implement with your current algorithm.
Something like
fun <K, V> generateDiffs( original: List<V>, updated: List<V>, detectMoves: Boolean, keySelector: (V) -> K )
or:
fun <K, V> generateDiffs( original: Map<K, V>, updated: Map<K, V>, )