Levenshtein distance/Alignment: Difference between revisions
Content deleted Content added
+ D entry |
Simpler D entry |
||
Line 19:
immutable s1 = "rosettacode";
immutable s2 = "raisethysword";
string s1b, s2b;
size_t pos1, pos2;
foreach (immutable c;
final switch (c) with (EditOp) {
case none, substitute:
Line 48 ⟶ 40:
}
writeln(
}</lang>
{{out}}
<pre>r_oset_tacode▼
▲r_oset_tacode
raisethysword</pre>
|