[Haskell-beginners] Pattern Matching
Yugesh Kothari
kothariyugesh at gmail.com
Sat Apr 27 14:31:18 UTC 2019
This is probably a stupid question but I can't seem to understand the use
of @ in haskell pattern matching.
Ex -
compress (x:ys@(y:_))
| x==y = compress us
| otherwise = x : compress us
compress us = us
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20190427/e3ded698/attachment.html>
More information about the Beginners
mailing list