However, why do I need the parenthes in the second clause? What does the compiler think I'm trying to do when I type
suma [] = 0
suma h:t = h + suma t

(suma h):t = h + suma t
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to