Questions on Using Python to Teach Data Structures and Algorithms

Fredrik Lundh fredrik at pythonware.com
Thu Sep 28 19:16:48 CEST 2006


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>




More information about the Python-list mailing list