levenshteinDistance(to:caseSensitive:)

The Levenshtein string distance, i.e. the minimal number of insertions, deletions and substitutions to transform this string to the given string.

StringProtocol+Extensions.swift:168
func levenshteinDistance<S>(to rhs: S, caseSensitive: Bool = true) -> Int where S : StringProtocol