[Haskell-cafe] Re: Why is there no splitBy in the list module?

Simon Marlow simonmarhaskell at gmail.com
Mon Jul 10 08:06:36 EDT 2006

Donald Bruce Stewart wrote:

> Hacking up your own custom split (or a tokens/splitOnGlue) must be one
> of the most common questions from beginners on the irc channel.
> Even fps has a split/splitBy:
>     http://www.cse.unsw.edu.au/~dons/fps/Data-ByteString.html#v%3Asplit
>     http://www.cse.unsw.edu.au/~dons/fps/Data-ByteString.html#v%3AsplitWith
>     http://www.cse.unsw.edu.au/~dons/fps/Data-ByteString.html#v%3Ajoin
> Anyone rememeber what the result of the "let's get split into the base
> library" movement's work was?

ISTR there wasn't a concensus, so nothing happened.  Which is silly, really - I 
agree we should definitely have a Data.List.split.


More information about the Haskell-Cafe mailing list