문제

I am trying to use a function on a list of S-expressions, but it just gives me an error "Unbound variable butter".

(depth* (()
         ((bitter butter)
          (makes)
          (butter bitter)
         butter)))
도움이 되었습니까?

해결책

It appears that you forgot to quote the s-expression, try this:

(depth* '(() ; notice the quote at the start of the list
          ((bitter butter)
           (makes)
           (butter bitter)
           butter)))
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top