[Haskell-cafe] Why cannot i add the `let` declaration ?

Andrew Coppin andrewcoppin at btinternet.com
Sat Jan 30 06:22:07 EST 2010


Szekeres István wrote:
>
>
> On Sat, Jan 30, 2010 at 8:39 AM, zaxis <z_axis at 163.com 
> <mailto:z_axis at 163.com>> wrote:
>
>     fac n = foldr (*) 1 [1..n]
>
>
> fac n = product [1..n]
>
> ;)

fac n = product [2..n]

:-D



More information about the Haskell-Cafe mailing list