Proposal (Trac ticket #3671): Add takeRec, genericTakeRec and spanRec to Data.List

Ian Lynagh igloo at
Wed Nov 18 09:47:58 EST 2009

On Tue, Nov 17, 2009 at 04:11:21PM +0100, Philip K.F. Hölzenspies wrote:
> Am I chalking you up as a +1?

For splitAts, yes.

My breaks has generally been such that
    breaks "123,456,,78" == ["123", "456", "", "78"]
but the details probably depend on exactly what I've been using it for.

I don't remember ever needing yours. I'd have thought that
    breaks :: (a -> Bool) -> [a] -> [([a], [a])]
would make more sense, but personally I'd vote for not adding a breaks
at all.


More information about the Libraries mailing list