Linked lists (was Re: Typing system vs. Java

Alex Martelli aleaxit at
Tue Aug 7 21:39:48 CEST 2001

<phawkins at> wrote in message
news:wky9ov6dgw.fsf at
> >>>>> "AM" == Alex Martelli <aleaxit at> writes:
> AM> def cdr(alist):
> AM>     return alist[1]
> Make that:
> return alist[1:]

Nope.  Remember, I had defined cons(a,b) as returning (a,b), and
must be b, not [b].


More information about the Python-list mailing list