-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
approvedApproved by CLC voteApproved by CLC votebase-4.19Implemented in base-4.19 (GHC 9.8)Implemented in base-4.19 (GHC 9.8)
Description
Currently Data.List.NonEmpty
defines:
-- | The 'unzip' function is the inverse of the 'zip' function.
unzip :: Functor f => f (a,b) -> (f a, f b)
unzip xs = (fst <$> xs, snd <$> xs)
But this is a very strange place for such a generally useful function.
I'd like to propose that Data.Functor
gains this function. I don't feel strongly on whether it should be a new definition, nor what should happen with Data.List.NonEmpty.unzip
, only that after this proposal I can do:
import Data.Functor (unzip)
martin-bednar-decathlon, blackheaven, kamek-pf, sfultong, TheMC47 and 1 more
Metadata
Metadata
Assignees
Labels
approvedApproved by CLC voteApproved by CLC votebase-4.19Implemented in base-4.19 (GHC 9.8)Implemented in base-4.19 (GHC 9.8)