Fuzzy Levenshtein variant of std.conv.to
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Apr 28 09:20:23 PDT 2015
At
https://github.com/nordlow/justd/blob/master/conv_ex.d
I'm trying to figure out how to best implement a fuzzy variant of
std.conv.to when converting a string to an enum.
I'm almost there but I'm uncertain how to best pick the index of
the smallest element in `distances` and then convert it to the
corresponding enumerator for when `U` is an enum.
Help please.
More information about the Digitalmars-d-learn
mailing list