Open
Description
Data.Map
and Data.IntMap
offer merge
and mergeA
operations that can take unions, intersections, differences, etc. We should be able to do something quite similar here. I suspect optimal merge
will have to be a bit different from mergeA
rather than just a specialization, thanks to the way arrays work. Also, as I've explored in a slightly different context, mergeA
can probably be implemented particularly efficiently for certain transformer stacks on top of IO
or ST s
, again thanks to the mutable array business. Dunno if that sort of thing is worth bothering with.