Please vote once and for good: range operations

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Fri Jan 30 04:08:14 PST 2009


Andrei Alexandrescu wrote:
> So please let's vote once and for all.

first/last.

They're just the most sensible symbols to use for retrieving the first 
and last element :).


> LISP:
> car
> last
> http://www.gigamonkeys.com/book/they-called-it-lisp-for-a-reason-list-processing.html 

Common Lisp (the Lisp I'm most familiar with) also has 'first', which is 
equivalent to 'car' and the antonym of 'last'.

('car's antonym is 'cdr', 'car' and 'last' are not meant to be paired up 
like this)



More information about the Digitalmars-d mailing list