Proposal: adding 'tailDropWhile' to Data.List

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Thu Sep 29 05:58:42 CEST 2011


On 29 September 2011 13:34, Bryan O'Sullivan <bos at serpentine.com> wrote:
> On Wed, Sep 28, 2011 at 9:19 AM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:
>>
>> Many languages provide the 'chop' or 'trip' function but Data.List
>> does not. I would like to add a new function called 'tailDropWhile'
>> so that people can easily implement 'chop' for String:
>
> I don't have an opinion on whether or not this should go in, but if the
> proposal is accepted, the name of the function should follow the existing
> Haskell Platform precedent from the "text" package, and be "dropWhileEnd"
> instead of "tailDropWhile".

I agree with Bryan regarding the name (though I'm still dubious as to
whether it should be in Data.List).

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



More information about the Libraries mailing list