Evaluation order

Evaluation of a compound procedure can be done in two orders

  1. Normal order (lazy evaluation)
    • fully expand until a long procedure only consisting of primitives is found, then evaluate.
  2. Applicative order
    • evaluate the sub-expressions (arguments) first, then substitute to evaluate the higher-order procedure.

Links

Sources