Proposal: Add chop function to Data.List

Stephen Tetley stephen.tetley at gmail.com
Tue Dec 14 18:31:19 CET 2010


On 14 December 2010 15:38, Lennart Augustsson <lennart at augustsson.net> wrote:
> Yes, chop can be easily written in terms of unfoldr.  But the chop function
> fits better with other existing list functions, like I tried to illustrate
> with my examples.

I'd expect the primitive definition of chop to be more efficient as
well - as there is no intermediate Maybe type.

chop - seems a nice function. I'd like to see it in Data.List.

Best wishes

Stephen



More information about the Libraries mailing list