Proposal (Trac ticket #3671): Add takeRec, genericTakeRec and
spanRec to Data.List
Ian Lynagh
igloo at earth.li
Thu Nov 19 06:46:42 EST 2009
On Thu, Nov 19, 2009 at 11:11:08AM +0100, Josef Svenningsson wrote:
> On Wed, Nov 18, 2009 at 3:47 PM, Ian Lynagh <igloo at earth.li> wrote:
> > 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've been using this kind of breaks as well in the past. Is there a
> usecase for a more general version?
Ooops, I actually meant
breaks (',' ==) "123,456,,78" == ["123", "456", "", "78"]
but personally I don't think this should be standardised.
Thanks
Ian
More information about the Libraries
mailing list