它给出了错误:
caar: contract violation
expected: (cons/c pair? any/c)
given: '("Harry" 5550011)发布于 2016-10-18 21:21:29
有几个小错误。
(null? name)应该是(null? book)。(make-phone-book name number '() '())(get-name book)和(get-number book)传递给make-phone-book,而不是name和number。在测试时,只使用make-phone-book和insert创建树。
不要用手写树。
https://stackoverflow.com/questions/40115434
复制相似问题