在标准Scheme中,可以编写
(if (> x 2) (set! x (- x 1)))
但这在Racket中是不可能的 - Racket if总是需要两个手臂.为什么?
if
racket
racket ×1