2003-04-11 12:02 ☼ post
Dive into Mark: My other car is a cdr
Found in 2-year old code:
def car(t): return t[0]<br /> def cdr(t): return t[1]
Good Lord, what was I thinking?
The coolest thing to me about Mark’s post was that I immediately saw the little buglet despite having limited python and lisp experience. I even had an inkling of what the proper syntax for the python code should be (def cdr(t): return t[1:]
). Moments like this make me think that I should really devote more time to improving my programming skill level because I really do enjoy it.