[][src]Function levenshtein_rs::compute

pub fn compute(a: &str, b: &str) -> usize

Computing the Levenshtein distance between strings.

Examples

let cat = "I Am a Cat";
let dog = "I Am a Dog";

assert_eq!(3, levenshtein::compute(cat, dog));