[Haskell-beginners] subset - a little add
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...
More information about the Beginners