On Mon, Feb 18, 2008 at 09:11:22PM -0800, David Brown wrote: > I suggest you implement lists correctly, since if you don't you're going to > also have a hard time understanding a lot of what happens in the SICP list > manipulation stuff. Python has tuples, and a 2-tuple is the same as a cons > cell.
Adding an element to a Python list is simply calling the append method. I just noticed that appending to a Scheme list means I have to walk the cons tree since I don't know the length of it. <whine>Picking out say the third element or deleting the 4th element suddenly take a few extra brain cells where with Python lists they were trivial. </whine> Chris -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
