[Haskell-cafe] [Maybe Int] sans Nothings
schlepptop at henning-thielemann.de
Mon May 23 22:20:07 CEST 2011
Brent Yorgey schrieb:
> On Mon, May 23, 2011 at 10:49:55AM -0700, Alexander Solla wrote:
>> There's a library function for it, but also:
>>> filter ((/=) Nothing)
>> is readable enough.
> Just a minor quibble: note that
>> filter (not . isNothing)
> is slightly preferable since it does not introduce a frivolous
> equality constraint on the type wrapped by the Maybe.
More information about the Haskell-Cafe