car, cdr; 1sr, rst
Sampo Smolander
sampo.smolander+news at helsinki.fi
Sat Oct 25 23:49:07 EDT 2003
In comp.lang.scheme Andrew Dalke <adalke at mindspring.com> wrote:
> Pascal Costanza:
>> I don't know how this could be done with 1st, rst or hd, tl respectively.
> Okay, I gave alternatives of "." and ">" instead of "car" and "cdr"
> "." for "here" and ">" for "the rest; over there". These are equally
> composable.
> . == car
> > == cdr
> cadr == >.
> caddr == >>.
> cddr == >>
One can also go like:
1st == car
rst == cdr
1rst == cadr
1rrst == caddr
rrst == cddr
The benefit being, it's less messy to quote these in Usenet :-)
More information about the Python-list
mailing list