[Haskell-cafe] Symmetric Difference for Data.Set and Data.IntSet?

wren romano winterkoninkje at gmail.com
Tue Jul 7 16:15:33 UTC 2015


On Sun, Jul 5, 2015 at 6:33 PM, Ben Franksen <ben.franksen at online.de> wrote:
> Zemyla wrote:
>> Could this be implemented as a primitive? I know it can be made from union
>> and difference, or doing toList on both of them, taking the symmetric
>> difference, and using fromDistinctAscList on the result, but it'd probably
>> be much faster if it could be done natively, like can be done with
>> Data.Map.mergeWithKey.
>
> +1

I'm also very +1.

-- 
Live well,
~wren


More information about the Haskell-Cafe mailing list