Compares two list and returns how they have changed. Each function uses an O(ND) algorithm internally, where N is sum of the each length of two text and D is the edit distance. If large text is replaced with another large text, it is the worst case.
Compares general lists.
diff [1, 3] [2, 3] == [Removed 1, Added 2, NoChange 3] -- TrueCompares two text.
Giving the following text
a = """aaa
bbb
ddd"""
b = """zzz
aaa
ccc
ddd"""results in
[ Added "zzz"
, NoChange "aaa"
, Removed "bbb"
, Added "ccc"
, NoChange "ddd"
].
This describes how each line has changed and also contains its value.