Re: rolling span and groupBy for lists

2018-02-05 Thread Harendra Kumar
Yes, I did too :-) But there is a key difference in this case, all these definitions are mathematically equivalent with identical semantics instead of being some fuzzy subjective standards. -harendra On 5 February 2018 at 23:46, Brandon Allbery wrote: > Why do I suddenly catch a whiff of https:

Re: rolling span and groupBy for lists

2018-02-05 Thread Brandon Allbery
Why do I suddenly catch a whiff of https://xkcd.com/927/ ? On Mon, Feb 5, 2018 at 1:13 PM, Harendra Kumar wrote: > According to hayoo there seem to be 7 different implementations of this > same function. Yours is 8th and mine is 9th and other people may have more > not uploaded or maybe the ones

Re: rolling span and groupBy for lists

2018-02-05 Thread Harendra Kumar
According to hayoo there seem to be 7 different implementations of this same function. Yours is 8th and mine is 9th and other people may have more not uploaded or maybe the ones that hayoo is not able to find. Does that make a case for including this in some standard place? -harendra On 5 Februar

Re: rolling span and groupBy for lists

2018-02-05 Thread Harendra Kumar
On 5 February 2018 at 12:22, Evan Laforge wrote: > I have my own list library with a bunch of things like this. I think > it's what most people do, and some upload them to hackage, e.g. > utility-ht or the split package, or data-ordlist. > The irony is that theoretically you can find a Haskell

Re: rolling span and groupBy for lists

2018-02-04 Thread Evan Laforge
I have my own list library with a bunch of things like this. I think it's what most people do, and some upload them to hackage, e.g. utility-ht or the split package, or data-ordlist. Specifically, I think rollingGroupBy is what I call splitWith: -- | Split @xs@ before places where @f@ matches. -

Re: rolling span and groupBy for lists

2018-02-04 Thread Harendra Kumar
I was mainly asking if it makes sense to include these functions in base/Data.List. Since the base package is maintained and ships along with ghc, and the issues are also raised at ghc trac I thought this is the right list. I am copying to librar...@haskell.org as well. -harendra On 5 February 20

Re: rolling span and groupBy for lists

2018-02-04 Thread David Feuer
This is the wrong list. You probably meant to email haskell-cafe or perhaps librar...@haskell.org. David FeuerWell-Typed, LLP Original message From: Harendra Kumar Date: 2/4/18 10:50 PM (GMT-05:00) To: ghc-devs@haskell.org Subject: rolling span and groupBy for lists Hi, F