Scheme Programming/A taste of Scheme/Solutions
Evaluating ((+ 3 6))
edit
Parentheses are used in Scheme to apply a procedure to operands. The inner expression (+ 3 6)
evaluates to 9
. This means that we are now left with (9)
, but 9 is not an procedure so it cannot be applied, hence the error.