[Haskell-cafe] *GROUP HUG*
Ozgur Akgun
ozgurakgun at gmail.com
Tue May 31 20:31:31 CEST 2011
Evan,
On 24 May 2011 19:57, Evan Laforge <qdunkan at gmail.com> wrote:
> On the catMaybes thing, I have a function 'mapMaybe = Maybe.catMaybes
> . map'. I turns out I only ever used catMaybes after mapping a Maybe
> function, so I hardly ever use catMaybes anymore. I suppose it should
> have been maybeMap for consistency with concatMap.
>
Just wanted to point out, that function is already defined in Data.Maybe:
http://hackage.haskell.org/packages/archive/base/latest/doc/html/Data-Maybe.html#v:mapMaybe
Hugs :)
Ozgur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110531/4fbe05b7/attachment.htm>
More information about the Haskell-Cafe
mailing list