4.3.3. Implementing the Amb Evaluator
Exercise 4.53

The result of evaluating

With permanent-set! as described in exercise 4.51 and if-fail as in exercise 4.52 , what will be the result of evaluating

(let ((pairs '()))
  (if-fail (let ((p (prime-sum-pair '(1 3 5 8) '(20 35 110))))
             (permanent-set! pairs (cons p pairs))
             (amb))
           pairs))

Nobody's finished this exercise yet. You'll be the first!


There are no comments yet.

Authentication required

You must log in to post a comment.

Login