[Haskell] Re: ST Monad and all that

2005-07-08 Thread Peter Eriksen
"Srinivas Nedunuri" <[EMAIL PROTECTED]> writes: > Hello, in trying to understand how to use the ST Monad I've come across > references to a bewildering variety of related types such as STRefs, > STArrays, MutVar, ArrayRef, IORef, IOArray, ArrRef, etc. the list goes on. Is > there a place where

[Haskell] Re: How to substract a list?

2005-03-27 Thread Peter Eriksen
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: > [(