Data.Map.unzip?

Joachim Breitner mail at joachim-breitner.de
Sat Dec 6 10:50:31 UTC 2014


Hi,


Am 6. Dezember 2014 10:25:03 MEZ, schrieb Andreas Abel <abela at chalmers.se>:
>On 05.12.2014 22:43, Joachim Breitner wrote:
>> did anyone else ever wanted to have a function
>>
>> Data.Map.unzip :: Map k (a, b) -> (Map k a , Map k b)
>
>Yes, I wanted it, and was annoyed by its absence, and the fact that I 
>had to fall back to the  <fmap fst , fmap snd>  solution (for
>efficiency 
>reasons).

although I wonder how big the difference would be. At least both versions will re-use the tree-structure. It probably depends on how its used...

Greetings,
Joachim




More information about the Libraries mailing list