[Haskell-cafe] [Maybe Int] sans Nothings

Max Bolingbroke batterseapower at hotmail.com
Mon May 23 18:29:01 CEST 2011

On 23 May 2011 17:20, michael rice <nowgate at yahoo.com> wrote:

> What's the best way to end up with a list composed of only the Just values,
> no Nothings?
> http://haskell.org/hoogle/?hoogle=%3A%3A+%5BMaybe+a%5D+-%3E+%5Ba%5D

Data.Maybe.catMaybes is what you want :-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110523/23d5ed41/attachment.htm>

More information about the Haskell-Cafe mailing list