jmitchell / multiset

Multiset/bag implementation in Rust
Apache License 2.0
9 stars 9 forks source link

added remove and subtract functionality #2

Closed BartMassey closed 7 years ago

BartMassey commented 7 years ago

This patch adds remove(), remove_times(), remove_all() and an implementation of Sub based on these. I chose to make these functions total by ignoring excess removals.

Thanks much for the nice package! This is functionality I need, so I'm hoping you can take it. Let me know if there are issues.

jmitchell commented 7 years ago

This is great--thank you!

BartMassey commented 7 years ago

Thanks much for the merge! My MiniChess endgame tablebase is under construction, and your package is one of the key pieces.