2 Oct
2006
2 Oct
'06
9:54 p.m.
On 10/2/06, Duncan Coutts <duncan.coutts@worc.ox.ac.uk> wrote:
If you need the previous implementation you can use this:
-- | Like 'splitWith', except that sequences of adjacent separators are -- treated as a single separator. eg. -- -- > tokens (=='a') "aabbaca" == ["bb","c"] -- tokens :: (Word8 -> Bool) -> ByteString -> [ByteString] tokens f = List.filter (not.null) . splitWith f
Duncan
Ok, I'll just do it that way. Thanks! -- Chad Scherrer "Time flies like an arrow; fruit flies like a banana" -- Groucho Marx