News for hackers. Stuff that matters.
Re:Intro to Haskell for Erlangers by peteretep on Monday March 10, 2014 @05:22AM (#7371970)
Consider:

    evaluate([ A,A,A, _,_,_, _,_,_ ]) when A != b -> { winner, A };
    evaluate([ _,_,_, A,A,A, _,_,_ ]) when A != b -> { winner, A };
    evaluate([ _,_,_, _,_,_, A,A,A ]) when A != b -> { winner, A };
I don't think I can do that as eloquently in Haskell using pattern matching, but I'd love for you to show me.

There are no comments on this comment yet.