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

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Jul 12 06:07:14 EDT 2006


Hello Donald,

Wednesday, July 12, 2006, 12:55:50 PM, you wrote:

> Question over whether it should be:
>     splitBy (=='a') "aabbaca" == ["","","bb","c",""]
>   or
>     splitBy (=='a') "aabbaca" == ["bb","c"]

> I argue the second form is what people usually want.

1) at least for 'lines' people prefer first
2) second can be easily got from the first


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list