jaspervdj / psqueues

Priority Search Queues in three different flavors for Haskell
https://hackage.haskell.org/package/psqueues
Other
64 stars 24 forks source link

Export Data.IntPSQ.unsafeInsertNew #28

Closed mitchellwrosen closed 6 years ago

mitchellwrosen commented 6 years ago

I was poking around the innards and unsafeInsertNew caught my eye - also the fact that every insert first does a delete!

Could unsafeInsertNew be exported? I happen to have an IntPSQ whose keys are pulled from a unique int supply so I'm confident they don't already exist. I could benefit from avoiding an unnecessary delete.

Thanks a lot :)

jaspervdj commented 6 years ago

Released this as 0.2.7.0