Closed nguiard closed 3 months ago
If I manually copy the function definition from queue.jl
in the repl
function Base.push!(q::Queue, x)
push!(q.store, x)
return q
end
then try again, push!
now works... Any idea? I'm quite confused
For DataStructures version 0.18 (stable current release), the function to add an item to a Queue is enqueue!
. This is has been changed to push!
in the DEV version of the package, which will become the stable version down the road. If you prefer to use push!
, then upgrade to the DEV version via: ]
at the REPL to enter Package mode, then add DataStructures#master
.
Oh! My bad, I was looking at the dev docs, effectively. Thanks and sorry for the inconvenience
Hi, I'm getting:
Julia 10.2, DataStructures 0.18.18.
push!
onDeque
works, but fails onQueue
.isempty
works... Am I missing something?