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

David Feuer david.feuer at gmail.com
Fri Dec 5 22:38:55 UTC 2014


On Fri, Dec 5, 2014 at 5:33 PM, Joachim Breitner <mail at joachim-breitner.de>
wrote:

> Hi,
>
>
> 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?
>

This looks like it should be the default implementation of an Unzippable
class, rather than a standalone function.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20141205/afe672eb/attachment.html>


More information about the Libraries mailing list