Crypt Master, CM> I have noticed that lists seem to swtich between CM> using [] and using (). for example: CM> CM> listSum [] = 0 CM> listSum (x:xs) = x + listsum xs
The parentheses are just 'normal' parentheses that are needed because application binds stronger than (:). Without the parentheses, you would get listSum x : xs which is the same as (listSum x) : xs . HTH, Stefan _______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
