<div dir="ltr">Hi James,<div><br></div><div>I think the difference they want to convey is that a function binding names an identifier and can contain several patterns, e.g. `foo [x] y = x + y` whereas a pattern binding is just one pattern, e.g. `[x]` or `y` in the earlier example. Function bindings can be desugared to case expressions with patterns.</div><div><br></div><div>Adam</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 14, 2016 at 3:32 PM, James Brown <span dir="ltr"><<a href="mailto:james.brown5374@gmail.com" target="_blank">james.brown5374@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am reading Haskell report 2010 and I can't understand the differences between function bindings and pattern bindings. Can anyone explain the differences? <div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.<br></blockquote></div><br></div>