jackfirth / rebellion

A collection of core libraries for Racket
https://pkgs.racket-lang.org/package/rebellion
Apache License 2.0
83 stars 16 forks source link

multiset=? would be a nice addition. #481

Closed jasonhemann closed 3 years ago

jasonhemann commented 3 years ago

I think I would like to have a multiset=? By analogy with set=? https://docs.racket-lang.org/reference/sets.html#%28def._%28%28lib._racket%2Fset..rkt%29._set~3d~3f%29%29

Is that just me?

jackfirth commented 3 years ago

Does equal? work for your use case? Multisets implement gen:equal+hash, so using equal? to compare two multisets should work as expected.

jasonhemann commented 3 years ago

That will /precisely/ match my use case, thank you very much!