1

我开始研究《Lisp in Small Pieces》这本书。例如,选定的球拍。但是在第一章有一个代码示例(if (atom?e) 。什么是“atom?”?在哪里定义它?

4

1 回答 1

2

Scheme标准没有定义atom?;通常的定义是

(define (atom? x) 
  (and (not (pair? x))
       (not (null? x))))
于 2013-11-07T12:59:17.640 回答