Levenshtein distance: Difference between revisions
→{{header|Common Lisp}}: Fix the formula for Levenshtein distance
(→{{header|Common Lisp}}: Fix the formula for Levenshtein distance) |
|||
Line 1,398:
((aref rec x y) (aref rec x y))
(t (setf (aref rec x y)
(+ (leven (1- x) (1- y)) (if (char= (
(leven la lb))))
|