learnyouahaskell.github.io
learnyouahaskell.github.io copied to clipboard
Add pattern guards
Pattern guards are part of the guard syntax in Haskell2010 and I think they should be included in the book. I'm not certain how to introduce them without making the existing text neither confusing nor too simplistic, but here's my first attempt.
Thanks for the input @ulysses4ever, that's clearer that way!
@memowe @xogcox @konsumlamm is there something I should change in this PR?
@kephas Thank you for your contribution! 🙂