[Haskell-cafe] Pattern guards in comprehensions

M Farkas-Dyck strake888 at gmail.com
Mon Aug 10 03:55:46 UTC 2015


On 09/08/2015 at 22:53:01 -0400, Richard Eisenberg wrote:
> This can be done today:
> 
> > allMinus m ns = [ n' | n <- ns, Just n' <- [n -? m] ]

Ah, obviously. Please excuse my earlier stupidity.


More information about the Haskell-Cafe mailing list