Bright Sun <[EMAIL PROTECTED]> writes:

> 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)]

Look at e.g. 

http://haskell.org/ghc/docs/latest/html/libraries/base/Data.List.html#v%3A%5C%5C

for inspiration

Regards,

Peter

_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to