On Dec 5, 2014 5:09 PM, "Eric Mertens" <emertens@gmail.com> wrote:
>
> 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)
It probably depends on how it's being used. Your way potentially does two passes, and may keep some things live longer than necessary.