[Haskell-cafe] About code style ?

Miguel Mitrofanov miguelimo38 at yandex.ru
Tue Feb 2 01:58:17 EST 2010


> However, i donot know how to write pure function using C style.
> func1 a = {
>  -- ...;
>   a * 2;
>  -- ...;
> }

What do you mean by "a * 2"? If you don't use this value, don't  
calculate it.


More information about the Haskell-Cafe mailing list