Solution to SICP Exercise 1.34

Structure and Interpretation of Computer Programs

Solution to Exercise 1.34:

DrScheme prints out an error message that reads:

procedure application: expected procedure, given: 2; arguments were: 2.

This is hardly surprising since (f f) evaluates to (f 2), which evaluates to (2 2), which is nonsense. The number 2 is not a procedure.

%d bloggers like this: