Data.Map.unzip?
Andreas Abel
abela at chalmers.se
Sat Dec 6 09:25:03 UTC 2014
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).
Cheers,
Andreas
--
Andreas Abel <>< Du bist der geliebte Mensch.
Department of Computer Science and Engineering
Chalmers and Gothenburg University, Sweden
andreas.abel at gu.se
http://www2.tcs.ifi.lmu.de/~abel/
More information about the Libraries
mailing list