Adding split/split' to Data.List, and redefining words/lines with it; also, adding replace/replaceBy

Neil Mitchell ndmitchell at gmail.com
Fri Jul 11 06:21:29 EDT 2008


Hi

>  ByteString split:
>
> >  split 'a'  "aXaXaXa"    == ["","X","X","X",""]
>
>
> Neil's:
>
> >  split' 'a'  "aXaXaXa" == ["","X","X","X"]
>
>
> I prefer the ByteString split (i.e. I prefer separator semantics over
>  terminator), also because it's invertible. Some more support:
>   http://www.haskell.org/pipermail/haskell-cafe/2006-July/016649.html

I prefer the ByteString split as well! That should be the one we use.

Thanks

Neil


More information about the Libraries mailing list