levenshtein
Function
levenshtein — Levenshtein distance
Synopsis
levenshtein(a: string, b: string) -> int64
Description
The levenshtein function computes the Levenshtein
distance between strings
a
and b
.
Examples
echo '{a:"kitten",b:"sitting"}' | super -z -c 'yield levenshtein(a, b)' -
=>
3