
11 Jul
2006
11 Jul
'06
10:41 p.m.
I personally use split :: Eq a => [a] -> [a] -> [[a]] all the time, much more often than splitBy :: (a -> Bool) -> [a] -> [[a]] But I don't call it "split". By analogy with concatMap, the Haskell analogue of Perl/Python "join" is concatIntersperse. Then, by analogy with lines/unlines, the Haskell analogue of "split" is... unconcatIntersperse. Hmm...