
So I’m learning Racket and the concept of cons cells is confusing me. The way it’s described in Realm of Racket makes it sound like these are pretty much the same thing as a linked list. So are list in Racket just linked list or am I missing something?

@ryan: All lists in Racket are linked lists.

In particular, singly-linked lists made up of cons cells.

Cons cells are the individual units of a linked list.

So, for example, consider the list (1 2 3 4)
. This is made up of 4 cons cells:

(4 . ())

(3 . #1#)

(2 . #2#)

(1 . #3#)

(where #1#
, etc. are backreferences to the cons cells I listed above)

Gotcha. Thanks for explaining.

Someone, perhaps me, should port PasteRack to a Slackbot. Kind of like the now-defunct rudybot.

I really miss being able to eval stuff on the go, to demonstrate stuff.

rudybot went defunct…?