Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 425 Bytes

File metadata and controls

25 lines (18 loc) · 425 Bytes

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"}' | zq -z 'yield levenshtein(a, b)' -

=>

3