Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 866 Bytes

README.markdown

File metadata and controls

38 lines (26 loc) · 866 Bytes

editdistancewf

Build Status

A simple crate for finding the edit-distance between two vectors, using the Wagner-Fischer algorithm.

install

Through crates, as you would usually:

[dependencies]
editdistancewf = "0.2.0"

usage

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
license

MIT