NOTE: the latest version is 1.0.6
Compares two list and returns how they have changed. Each function internally uses Wu's O(NP) algorithm.
This describes how each line has changed and also contains its value.
Compares general lists.
diff [1, 3] [2, 3] == [Removed 1, Added 2, NoChange 3] -- True
Compares 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.