On Thu, Feb 21, 2008 at 08:53:43AM -0800, David Brown wrote: > Very different operation. Scheme's append doesn't modify the original > list. Python "list" append adds the element to the existing list. This is > more like scheme's "append!" call.
OK just so I'm clear... When you append to a Scheme's list, you are replacing the empty list at the end with (new_element . () ). So the only part of the initial list that get's "modified" is the pointer to that last cdr right? Chris -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
