1.1.6. Conditional Expressions and Predicates

Exercise 1.4

Observe that our model of evaluation allows for combinations whose operators are compound expressions. Use this observation to describe the behavior of the following procedure:

(define (a-plus-abs-b a b)
  ((if (> b 0) + -) a b))

This exercise has been completed:

  • Alfred Sorrow
  • Mikhail Rubashkin
  • Roman
  • IvanRomanoff
  • Aleksandr Serov
  • Stanislav Dzisiak
  • A. D.
  • timon1410
  • leios

There are no comments yet.

Authentication required

You must log in to post a comment.