
9 Feb
2011
9 Feb
'11
7:07 a.m.
Hi, Is this a good implementation of split function? ... I was wondering about the "lines" function, it basically a special case of split right? split c xs = foldr f [[]] xs where f x list@(l:ls)= if x == c then []:list else (x:l):ls Regards, Kashyap