
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

9 Feb
9 Feb
8:21 a.m.
There is a 'spit' library on hackage. Maybe you are looking for this http://hackage.haskell.org/package/split
5264
Age (days ago)
5264
Last active (days ago)
1 comments
2 participants
participants (2)
-
Anton Kholomiov
-
C K Kashyap