Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created October 29, 2019 22:06
Show Gist options
  • Save chelseatroy/7988a03cf3b5d6c42aa7f6c57ac69e10 to your computer and use it in GitHub Desktop.
Save chelseatroy/7988a03cf3b5d6c42aa7f6c57ac69e10 to your computer and use it in GitHub Desktop.
Append, Cons, and List
; 2.26
(define x (list 1 2 3))
(define y (list 4 5 6))
(append x y) ;---> (1 2 3 4 5 6)
(cons x y) ;---> ((1 2 3) 4 5 6)
(list x y) ;---> ((1 2 3) (4 5 6))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment