On 24/05/2011, at 5:49 AM, Alexander Solla wrote:
> There's a library function for it, but also:
> 
> > filter ((/=) Nothing)

The problem with that in general is that it only
applies to [Maybe t] if Eq t, but you don't
actually _need_ t to support equality.
filter isJust
will do the job, where isJust is in Data.Maybe.


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to