rename HammingNeigbours function to LevenshteinNeighbours
This commit is contained in:
parent
05e22b3c79
commit
7fd1d68148
2
main.jl
2
main.jl
@ -50,7 +50,7 @@ function binarySearch(word::String, words::Vector{String})
|
|||||||
return false, 0
|
return false, 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function HammingNeighbours(w::String)
|
function LevenshteinNeighbours(w::String)
|
||||||
neighbours = Vector{String}()
|
neighbours = Vector{String}()
|
||||||
w = collect(w)
|
w = collect(w)
|
||||||
for i in eachindex(w)
|
for i in eachindex(w)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user