Closed EricYT closed 8 years ago
Hey @EricYT
What's the motivation for an Empty
method?
What would be the added value compared to len(myQueue.Size()) == 0
?
Hey @oleiade Deque has a method .Empty(). So pqueue should has a method .Empty() let the interface pure.If the code use .Empty() some places, other location use len(xx) == 0.Ugly aren't ?
Hehe my bad. Thanks for the PR @EricYT and sorry for the awful delay!
A method check the pqueue is empty