List (未绑定变量)在S表达式列表上使用函数(mit方案)

List (未绑定变量)在S表达式列表上使用函数(mit方案),list,variables,scheme,s-expression,List,Variables,Scheme,S Expression,我试图在S表达式列表上使用函数,但它只给了我一个错误“Unbound variable butter” 您似乎忘记引用s表达式,请尝试以下操作: (depth* '(() ; notice the quote at the start of the list ((bitter butter) (makes) (butter bitter) butter))) (depth* '(() ; notice the

我试图在S表达式列表上使用函数,但它只给了我一个错误
“Unbound variable butter”


您似乎忘记引用s表达式,请尝试以下操作:

(depth* '(() ; notice the quote at the start of the list
          ((bitter butter)
           (makes)
           (butter bitter)
           butter)))
(depth* '(() ; notice the quote at the start of the list
          ((bitter butter)
           (makes)
           (butter bitter)
           butter)))