You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
construction of a PriorityQueue could be done using PriorityQueue(K, V) where K and V are types of keys and priorities but it raises a warning
julia> PriorityQueue(Int, String)
WARNING: PriorityQueue{K, V}(::Type{K}, ::Type{V}) is deprecated, use PriorityQueue{K, V}() instead.
Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:70
[2] DataStructures.PriorityQueue(::Type{Int64}, ::Type{String}) at ./deprecated.jl:57
[3] eval(::Module, ::Any) at ./boot.jl:235
[4] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66
[5] macro expansion at ./REPL.jl:97 [inlined]
[6] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73
while loading no file, in expression starting on line 0
DataStructures.PriorityQueue{Int64,String,Base.Order.ForwardOrdering} with 0 entries
Maybe it should be updated.
Thanks for the nice work
Kind regards
The text was updated successfully, but these errors were encountered:
Hello,
according doc https://github.com/JuliaCollections/DataStructures.jl/blame/4cd14487c7f66f4e2a61d0e703b06b3a6a660a4e/doc/source/priority-queue.rst#L12
and docstring
DataStructures.jl/src/priorityqueue.jl
Line 7 in 4cd1448
construction of a
PriorityQueue
could be done usingPriorityQueue(K, V)
where K and V are types of keys and priorities but it raises a warningMaybe it should be updated.
Thanks for the nice work
Kind regards
The text was updated successfully, but these errors were encountered: