[Haskell-cafe] Pattern guards in comprehensions
eir at cis.upenn.edu
Mon Aug 10 03:57:34 UTC 2015
Apologies if my earlier message came across as a bit brutal. When I first saw this pattern a little while ago, I was surprised by it too!
On Aug 9, 2015, at 11:55 PM, M Farkas-Dyck <strake888 at gmail.com> wrote:
> 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