- :integer
- :block
levenshtein
calculate Levenshtein distance/similarity between given strings
Parameters
levenshtein stringA :string stringB :string
Attributes
align | return aligned strings | |
with | :char | use given filler for alignment (default: -) |
Returns
Examples
copyprint levenshtein "for" "fur" ; 1 print levenshtein "one" "one" ; 0
copyprint join.with:"\n" levenshtein .align "ACTGCACTGAC" "GCATGACTAT" ; AC-TGCACTGAC ; GCATG-ACT-AT