[Haskell-beginners] Wildcards in expressions
Tom Murphy
amindfv at gmail.com
Wed Jan 26 03:34:37 CET 2011
Hi everyone,
Any suggestions?
Given that
someList :: [(a,b,String)]
, the expression
(_, _, "Tom") `elem` someList
seems so intuitive that, even though it doesn't work, I've been searching
for several hours for something similar.
Do any of you know a way I can pull this off? I know there are plenty
of ways to get the functionality, but something similarly intuitive and
succinct would be great.
Thanks for the help,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110125/6e7c87a4/attachment.htm>
More information about the Beginners
mailing list