davecom/SwiftPriorityQueue

Support for remove()

adipascu opened this issue · 3 comments

Support for remove()

Hi @ADI1133,
There is already a pop() method. Do you mean a method that pops but does not return a value? What is the use case for having it instead of just ignoring the return value of pop()?

I need to update the position of an item. In java I remove and push back the item. My issue can be solved by a remove or update method that takes in a specific item.

@ADI1133
I have added these methods to the latest commit. Check it out and perhaps add additional unit tests. Thanks.