kowainik/treap

Add lawful `Semigroup` and `Monoid` instances to `Treap` and `RTreap`

chshersh opened this issue · 3 comments

I think merge can be an implementation of <>.

@chshersh do you mind if I take this?

@sphaso Sure, go for it! It would be also nice to implement property-based testing for Semigroup and Monoid laws. But we have separate issue for that: #24. Let me know if you want to implement these two property-tests as well 🙂

@chshersh great idea! I opened a PR which includes a couple of property-based tests.