previous | index | next

Dynamic Structs

Recall Racket's cons procedure:
  > (define lst '())
  > (cons 3 (cons 2 (cons 1 lst)))
  (3 2 1)
cons takes storage from Racket's free store and makes pairs, chaining them together to form lists.


previous | index | next