-
Notifications
You must be signed in to change notification settings - Fork 254
dequeue for PriorityQueue should return Key-Value Pair not just Key #845
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
Comments
There is |
I didn't know of |
I totally agree with you! I would recommend keeping this issue open since this syntax is not ideal for users. |
well, if you think it isn't too late to change....re-opened |
It looks like #479 removes these and replaces them with |
Generally, the dequeue operation is to retrieve the value in a path-planning tree search. As currently implemented, one needs to call peek() to get to the "best" value (best is lowest or highest depending on direction), followed by dequeue!() to remove it. This is cumbersome and inefficient (two calls to get "best").
make dequeue! return the same as peek
The text was updated successfully, but these errors were encountered: