[GHC] #1816: Add Data.Set.mapMaybe
GHC
trac at galois.com
Wed Oct 31 15:54:25 EDT 2007
#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
More information about the Glasgow-haskell-bugs
mailing list