12 Feb
2011
12 Feb
'11
4 p.m.
Is there any reason, that one can't find a function that splits a list at a seperator in the standard library? I imagined something like this: splitSeperator :: Eq a => a -> [a] -> [[a]] splitSeperator ',' "foo,bar,baz" --> ["foo","bar","baz"] Or something similar? This is needed so often, even if I can implement it in one line, is there any reason why it's not in the libs? Yours, Robert Clausecker