Understanding Cons cell notation
Posted: Mon May 04, 2009 5:54 pm
Hello, I am using Touretzky's Common Lisp book to teach myself Lisp. I don't know if it is Lisp or the book, but learning Lisp isn't too hard and I am giddy. The only programming experience I have is a failed college BASIC class about 9 years ago. So I guess you can consider me as a guinea pig of an experiment for whether Lisp is a suitable first language to learn.
Anyhoo, the cons cell notation in Touretzky's book is now puzzling me after finishing 6 chapters. It is the squiggly wavy pointer for functions. I shall refer to chapter 2.9. The input to REST is pointing this way: REST --> THE BIG BOPPER. However, the result: REST --> BIG BOPPER also points in the same direction. Should not the notation for the input point the other way? Like so: REST <-- THE BIG BOPPER ??
I understand that all pointers point in one direction, so it's hard to wrap my head around input and output since Lisp works on the basis of pointers. Can anyone elaborate further about this?

Anyhoo, the cons cell notation in Touretzky's book is now puzzling me after finishing 6 chapters. It is the squiggly wavy pointer for functions. I shall refer to chapter 2.9. The input to REST is pointing this way: REST --> THE BIG BOPPER. However, the result: REST --> BIG BOPPER also points in the same direction. Should not the notation for the input point the other way? Like so: REST <-- THE BIG BOPPER ??
I understand that all pointers point in one direction, so it's hard to wrap my head around input and output since Lisp works on the basis of pointers. Can anyone elaborate further about this?