Please vote once and for good: range operations

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Jan 28 16:46:17 PST 2009


On Wed, Jan 28, 2009 at 7:26 PM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> Python:
> lst[0]
> lst[len(lst)-1]

Or more concisely, lst[-1].

> So please let's vote once and for all. No choice will please everybody, but
> I want to settle for something that at least won't displease the most
> vehement ones :o).

first/last would be my first choice.  head/last would also be fine,
and is in keeping with, uh pretty much everything else, it seems.



More information about the Digitalmars-d mailing list