Myer

object Myer

Implementation of Myer's diff algorithm on two Lists creating a Flow of Patches.

Functions

diff
Link copied to clipboard
js
fun <T> diff(oldList: List<T>, newList: List<T>): List<Patch<T>>
diffs to versions of a List with an IdProvider.
fun <T, I> diff(oldList: List<T>, newList: List<T>, idProvider: IdProvider<T, I>): List<Patch<T>>
diffs to versions of a List by providing an IdProvider.
equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
toString
Link copied to clipboard
js
open fun toString(): String