#1816: Add Data.Set.mapMaybe
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: proposal | Status: new
Priority: normal | Milestone: Not GHC
Component: libraries/base | Version: 6.8
Severity: normal | Keywords:
Difficulty: Unknown | Os: Unknown
Testcase: | Architecture: Unknown
-----------------------------+----------------------------------------------
This function is also available for lists (from Data.Maybe) and Maps
(Data.Set).
The semantics are straightforward:
{{{
mapMaybe f = fromList . catMaybes . map f . toList
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1816>
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