
18 Nov
2009
18 Nov
'09
2:47 p.m.
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. Thanks Ian