[Haskell-beginners] Pattern Matching for record syntax
Imants Cekusins
imantc at gmail.com
Thu Jan 7 22:33:55 UTC 2016
if you must use pattern matching, here is a tip:
(Person name0 age0)
i.e. records are like tuples with values in the order of declared record
fields.
name0 can be named anything else. To match any field value, use _ for that
field
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160107/07ee45f4/attachment.html>
More information about the Beginners
mailing list