[Haskell] How to substract a list?

Bright Sun bright_sun at yahoo.com
Sun Mar 27 18:00:36 EST 2005


In Haskell, ++ can spends second list argument onto
the end of first list argument.  How to substract the
second list from the first list?

For example, 
[(5,1),(4,1),(3,1),(2,1),(1,1)]
substract
[(2,1),(1,1)]
I want to get result list:
[(5,1),(4,1),(3,1)]

Tks.  


		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs


More information about the Haskell mailing list