[Haskell-beginners] Pattern Matching for record syntax

Imants Cekusins imantc at gmail.com
Thu Jan 7 22:28:54 UTC 2016


you could filter record list

http://hackage.haskell.org/package/base-4.8.1.0/docs/Prelude.html#v:filter

\r -> elem (name r) names

then fmap the filtered list to extract age
age <$> list1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160107/0de2bd5b/attachment.html>


More information about the Beginners mailing list