Proposal: Add functions to get consecutive elements to Data.List

Tobias Florek haskell at
Wed Apr 13 08:21:36 UTC 2016


I have no say in the matter. Having said that...

> -1. I think these are good functions, but I don't think base is the place
> for them. They just don't seem "fundamental" enough.

I do agree with you on that point, but because in it's `zip <*> tail`
form, it does not pass the Fairbairn threshold.

But given your optimization (which you won't inline when you need it),
I think it does.

 Tobias Florek

More information about the Libraries mailing list