[Haskell] new to haskell

Scott Turner p.turner at computer.org
Sat May 21 17:39:51 EDT 2005


On 2005 May 21 Saturday 17:52, wenduan wrote:
>      let n = read number
This converts type String to Integer.

>                return (number : rest)
This line is building up the list.  Put 'n' on the list rather than 'number', 
so that the list will be numeric. Then when you try "list <- calculate", you 
can apply 'sum', etc.

> sorry for those who feel its quite basic
It is no problem.  Beginners are welcome.  If you have further questions, I 
recommend using the haskell-cafe mailing list, which is more appropriate for 
extended discussions.


More information about the Haskell mailing list