Re: Questions on Using Python to Teach Data Structures and Algorithms



sturlamolden wrote:

I seem to remember that a cons joins two items, it doesn't grow a
strait list.

http://www.lisp.org/HyperSpec/Body/fun_cons.html

"If object-2 is a list, cons can be thought of as producing a new list which is like it but has object-1 prepended."

</F>

.