Created
October 29, 2019 22:06
-
-
Save chelseatroy/7988a03cf3b5d6c42aa7f6c57ac69e10 to your computer and use it in GitHub Desktop.
Append, Cons, and List
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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