Merge pull request #1 from kiliankoe/swift4 Swift 4
Merge pull request #1 from kiliankoe/swift4
Swift 4
Tiny Swift implementation of the Levenshtein algorithm
To use this package with the Swift Package Manager you include this repository in your Package.swift file:
Package.swift
import PackageDescription let package = Package( // ... dependencies: [ // ... .Package(url: "https://github.com/decryptOS/Levenshtein.git", majorVersion: 0, minor: 1), // ... ] )
import Levenshtein // ... let a = "Apple" let b = "Apples" assert(levenshteinDistance(a, b) == 1) // 1 because 1 change is necessary to transform between a and b
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Levenshtein
Tiny Swift implementation of the Levenshtein algorithm
Installation
Swift Package Manager
To use this package with the Swift Package Manager you include this repository in your
Package.swift
file:Usage