Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Nearest ¶
Nearest returns the element of candidates nearest to x using the Levenshtein metric, or "" if none were promising.
func SortByEditDistance ¶
func SortByEditDistance[S ~string](x S, candidates []S)
SortByEditDistance sorts the list of candidates by edit distance from x.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.