Pkg.add(“DataStructures”)
import DataStructures.update!
using DataStructures
pq = PriorityQueue{Event,Float64}()
enqueue!(pq, Choice1(), 1.5)
enqueue!(pq, Choice2(), 6.5)
enqueue!(pq, Reveal(), 4.5)
foo = dequeue!(pq)
Pkg.add(“DataStructures”)
import DataStructures.update!
using DataStructures
pq = PriorityQueue{Event,Float64}()
enqueue!(pq, Choice1(), 1.5)
enqueue!(pq, Choice2(), 6.5)
enqueue!(pq, Reveal(), 4.5)
foo = dequeue!(pq)