haskell / containers

Assorted concrete container types
https://hackage.haskell.org/package/containers
314 stars 177 forks source link

Symmetric difference for sets #1002

Open meooow25 opened 2 months ago

meooow25 commented 2 months ago

Set and IntSet offer union, intersection, difference, but no symmetricDifference. I don't see why it should be left out. Set even offers disjointUnion.

See also: #732. This is about adding a generalized merge, but surely symmetricDifference deserves to exist without or without such a merge function.

If Set and IntSet get these, it would be consistent to add them for Map and IntMap too.