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.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to