Jump to content

Scheme Programming/A taste of Scheme/Solutions

From Wikibooks, open books for an open world

Evaluating ((+ 3 6))

[edit | edit source]

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.