Simple Question

Ch. A. Herrmann herrmann@fmi.uni-passau.de
Thu, 16 May 2002 15:38:06 +0200


Hi,

    JiJie> 20) append' x:xs y = [(init x:xs)] ++ [(tail xs)++[y]]

function application (blank) binds stronger than :,
thus you should write 

   append' (x:xs) y = ...

Cheers
-- 
 Christoph