sturlamolden wrote: > Thus I stand by my original claim. Essentlially: > > def cons(car,cdr): return (car,cdr) # or [car,cdr] > def car(cons): return cons[0] > def cdr(cons): return cons[1]
I guess you were talking about implementing the _structure_ of lisp lists in python syntax (as you seem to imply), not trying to emulate their _behavior_ with one-dimensional python lists. That makes sense, and your code is correct in that case; but in the other case Brendon's code is correct. So everyone was right (only, about different things). :) Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list