Levenshtein distance: Difference between revisions
Content added Content deleted
Line 2,155: | Line 2,155: | ||
=={{header|FutureBasic}}== |
=={{header|FutureBasic}}== |
||
Recursive version. |
|||
<syntaxhighlight lang="futurebasic"> |
<syntaxhighlight lang="futurebasic"> |
||
local fn LevenshteinDistance( s1 as CFStringRef, s2 as CFStringRef ) as NSInteger |
local fn LevenshteinDistance( s1 as CFStringRef, s2 as CFStringRef ) as NSInteger |
||
Line 2,205: | Line 2,206: | ||
print |
print |
||
next |
next |
||
NSLog( @"%@", fn WindowPrintViewString( 1 ) ) |
|||
HandleEvents |
HandleEvents |