Data.Functor.unzipF (Was: Data.Map.unzip?)

Henning Thielemann lemming at henning-thielemann.de
Fri Dec 5 22:36:11 UTC 2014



On Fri, 5 Dec 2014, Joachim Breitner wrote:

> Am Freitag, den 05.12.2014, 14:09 -0800 schrieb Eric Mertens:
>> Would it be significantly better than just having/using the following
>> definition?
>>
>> unzipF :: Functor f => f (a, b) -> (f a, f b)
>> unzipF x = (fmap fst x, fmap snd x)
>
> yes, I guess that would be sufficient. Something for Data.Functor?

Btw. you can already import it from here:
    http://hackage.haskell.org/package/utility-ht-0.0.10/docs/Control-Functor-HT.html


More information about the Libraries mailing list