create a list in scheme code example
Example 1: how to make a list in scheme
(cons 4 (cons 10 ()))
;(4 10)
Example 2: how to make a list in scheme
(cons 4 10)
#(4, 10)
#normal list
(cons 4 (cons 10 (cons 9)))
#linked list
(4, 10, 9)
(cons 4 (cons 10 ()))
;(4 10)
(cons 4 10)
#(4, 10)
#normal list
(cons 4 (cons 10 (cons 9)))
#linked list
(4, 10, 9)