Re: Questions on Using Python to Teach Data Structures and Algorithms
- From: Steve Holden <steve@xxxxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 16:42:07 +0100
Brendon Towle wrote:
Some of your Lisp translations are subtly off...But surely this will return None?
Date: 28 Sep 2006 02:49:50 -0700
From: "sturlamolden" <sturlamolden@xxxxxxxx>
Subject: Re: Questions on Using Python to Teach Data Structures and
Algorithms
To: python-list@xxxxxxxxxx
If you want to make a chained structure, then perhaps you know LISP?
This is what the basic machinery of LISP looks like in Python:
def cons(a,b)
return [a,b]
should be:
return [a].extend(b)
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
.
- Prev by Date: Re: License / Registration key enabled software
- Next by Date: Re: best way to get data into a new instance?
- Previous by thread: Re: Questions on Using Python to Teach Data Structures and Algorithms
- Next by thread: Re: Questions on Using Python to Teach Data Structures and Algorithms
- Index(es):
Relevant Pages
|