In SICP exercise 2.26 using DrScheme, why does cons return a list, instead of a pair of lists?

前端 未结 6 1283
北海茫月
北海茫月 2021-01-05 17:15

In SICP exercise 2.26, this Scheme code is given:

(define x (list 1 2 3))
(define y (list 4 5 6))

Then this cons call is given:

<         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 17:51

    try (list x y) I'm sure it works on common lisp, I don't know about Scheme

提交回复
热议问题