Scheme · Lesson 6
Pairs and lists: cons, car, cdr
Build pairs with cons, take them apart with car and cdr, see how lists are chains of pairs ending in '(), and use list, append, reverse and list-ref.
Lessons · Scheme · Lesson 6 of 10
Pairs and lists: cons, car, cdr
Build pairs with cons, take them apart with car and cdr, see how lists are chains of pairs ending in '(), and use list, append, reverse and list-ref.

