Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: MethodError: no method matching (Array{Int64, N} where N)(::Int64, ::Int64) #21

Open
eosfor opened this issue Oct 2, 2021 · 0 comments

Comments

@eosfor
Copy link

eosfor commented Oct 2, 2021

julia> versioninfo()
Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

julia> levenshtein("polynomial", "exponential")
ERROR: MethodError: no method matching (Array{Int64, N} where N)(::Int64, ::Int64)
Closest candidates are:
(Array{T, N} where N)(::LinearAlgebra.UniformScaling, ::Integer, ::Integer) where T at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/LinearAlgebra/src/uniformscaling.jl:475
(Array{T, N} where N)(::UndefInitializer, ::Int64) where T at boot.jl:462
(Array{T, N} where N)(::UndefInitializer, ::Int64, ::Int64) where T at boot.jl:463
...
Stacktrace:
[1] levenshtein!(source::String, target::String, deletion_cost::Int64, insertion_cost::Int64, substitution_cost::Int64)
@ Levenshtein ~/.julia/packages/Levenshtein/4MdEU/src/Levenshtein.jl:33
[2] levenshtein(source::String, target::String, deletion_cost::Int64, insertion_cost::Int64, substitution_cost::Int64)
@ Levenshtein ~/.julia/packages/Levenshtein/4MdEU/src/Levenshtein.jl:22
[3] levenshtein(source::String, target::String, cost::Int64)
@ Levenshtein ~/.julia/packages/Levenshtein/4MdEU/src/Levenshtein.jl:18
[4] levenshtein(source::String, target::String)
@ Levenshtein ~/.julia/packages/Levenshtein/4MdEU/src/Levenshtein.jl:14
[5] top-level scope
@ REPL[6]:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant