[Haskell-beginners] subset - a little add

Luca Ciciriello luca_ciciriello at hotmail.com
Fri Jan 29 02:36:35 EST 2010

Just a little add to may previous mail.

The solution I've found from myself is:


subset :: [String] -> [String] -> Bool
subset xs ys = and [elem x ys | x <- xs]


My question is if exists a more elegant way to do that.


Do you have a story that started on Hotmail? Tell us now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20100129/ce4cda35/attachment.html

More information about the Beginners mailing list