On 23 May 2011 17:20, michael rice <nowgate@yahoo.com> wrote:
What's the best way to end up with a list composed of only the Just values,no Nothings?
Data.Maybe.catMaybes is what you want :-)
Cheers,Max
On 23 May 2011, at 17:20, michael rice wrote:What's the best way to end up with a list composed of only the Just values, no Nothings?Go to haskell.org/hoogle Type in "[Maybe a] -> [a]" Click on first result. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
On 5/23/11 9:20 AM, michael rice wrote:
What's the best way to end up with a list composed of only the Just values,no Nothings?
Try catMaybes in Data.Maybe.
Cheers,
Greg