如何在scheme中仅显示列表的元素

如何在scheme中仅显示列表的元素,scheme,racket,Scheme,Racket,(display'(abc))返回(abc),但我正在寻找一个将(abc)作为参数并显示abc的过程。这可能吗 这是一个符号列表,它有一个标准表示:”(a b c)。如果您想摆脱周围的(),我们必须将元素作为字符串进行操作,例如: (display ; finally, display the string (string-join ; join the strings using a space as separator (map symbol-

(display'(abc))
返回
(abc)
,但我正在寻找一个将
(abc)
作为参数并显示
abc
的过程。这可能吗

这是一个符号列表,它有一个标准表示:
”(a b c)
。如果您想摆脱周围的
()
,我们必须将元素作为字符串进行操作,例如:

(display              ; finally, display the string
 (string-join         ; join the strings using a space as separator
  (map symbol->string ; convert each symbol to a string
       '(a b c))))    ; this is a list of symbols
它将打印:

a b c