Note that the PriorityQueue type in Base may do what you want.
- [julia-users] in-place copying mutable vs immutable Greg Plowman
- Re: [julia-users] in-place copying mutable vs immut... Andreas Noack
- [julia-users] in-place copying mutable vs immutable Steven G. Johnson
