#974: Add unzipEithers, lefts, rights to Data.Either
----------------------------+-----------------------------------------------
Reporter: guest | Owner:
Type: proposal | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------------+-----------------------------------------------
Changes (by guest):
* difficulty: Unknown => Easy (1 hr)
* summary: Add partitionEithers, lefts, rights to Data.Either => Add
unzipEithers, lefts, rights to Data.Either
Comment:
Everyone commenting so far now finds unzipEithers the best name for the
function `unzipEithers :: [Either a b] -> ([a],[b])`
There have also been suggestions of
`partitionEither :: (a -> Either b c) -> [a] -> ([b], [c])`
but this should go into a new trac if people want to pursue it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/974>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs