A simple crate for finding the edit-distance between two vectors, using the Wagner-Fischer algorithm.
Through crates, as you would usually:
[dependencies]
editdistancewf = "0.2.0"
There is a single function in the editdistancewf
namespace,
distance
, that accepts two iterators for a type T : Eq
. The
iterators are consumed by the comparison.
extern crate editdistancewf as wf;
wf::distance("foo".chars(), "bar".chars())
// => 3 : usize
MIT