similarity   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/base/base.xtm

Implementation

(bind-func similarity
  (lambda (s1:String* s2:String*)
    (/ 1.0 (i64tod (+ 1 (levenshtein s1 s2))))))


Back to Index