SwiftLCS 1.0
CollectionType extension:
An extension of CollectionType
, which calculates the diff between two collections.
diff()
returns the diff between two collections.
RangeReplaceableCollectionType extension:
An extension of RangeReplaceableCollectionType
, which calculates the longest common subsequence between two collections.
longestCommonSubsequence()
returns the longest common subsequence between two collections.
String extension:
An extension of String
, which calculates the longest common subsequence between two strings.
longestCommonSubsequence()
returns the longest common subsequence between two strings.
Diff struct:
A generic struct that represents a diff between two collections.