core
/
dev.fritz2.utils
/
Myer
js
Myer
object
Myer
Content copied to clipboard
Implementation of Myer's diff algorithm on two
List
s creating a
Flow
of
Patch
es.
Functions
Functions
diff
Link copied to clipboard
js
fun <
T
>
diff
(oldList:
List
<
T
>, newList:
List
<
T
>):
List
<
Patch
<
T
>>
Content copied to clipboard
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
>>
Content copied to clipboard
diffs to versions of a
List
by providing an
IdProvider
.