Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jhtom
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
jhtom
13y ago
Speaking about concepts perhaps Norvig post "(How to Write a (Lisp) Interpreter (in Python))" http://norvig.com/lispy.html can be useful. The concept of a dotted pair (the car and the cdr are interesting historical facts. I wish you t
2.
▲
by
jhtom
13y ago
Just a small note. In the definition of the Cons class, the iterate method is calling each time to len before proceeding, and that is terribly inefficient. def __iter__(self): current = self while len(current) &#