2 \xe2\x80\x93 (-12/x) = -4
\n\n负数12让我很困惑。我该把负号放在哪里?
\n\n(define (math x)\n( = ( - ( / 12 x) 2) 4))\nRun Code Online (Sandbox Code Playgroud)\n 我正在阅读本书中的本地定义,我遇到了这个例子 -
(local ((define (f x) (+ x 5))
(define (g alon)
(cond
[(empty? alon) empty]
[else (cons (f (first alon)) (g (rest alon)))])))
(g (list 1 2 3)))
Run Code Online (Sandbox Code Playgroud)
这究竟local做了什么?