mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
Merge pull request #3075 from burner/algo_cmp_levenshtein
std.algo.cmp.levenshtein docu
This commit is contained in:
commit
081ae03387
1 changed files with 8 additions and 0 deletions
|
@ -1095,6 +1095,14 @@ the minimal amount of edit operations necessary to transform $(D s)
|
|||
into $(D t). Performs $(BIGOH s.length * t.length) evaluations of $(D
|
||||
equals) and occupies $(BIGOH s.length * t.length) storage.
|
||||
|
||||
Params:
|
||||
equals = The binary predicate to compare the elements of the two ranges.
|
||||
s = The original range.
|
||||
t = The transformation target
|
||||
|
||||
Returns:
|
||||
The minimal number of edits to transform s into t.
|
||||
|
||||
Allocates GC memory.
|
||||
*/
|
||||
size_t levenshteinDistance(alias equals = "a == b", Range1, Range2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue