Design Pattern for Auxiliary Function
A design pattern for recursive auxiliary functions in Lisp:
(define (myfun arg)
      (myfunb arg initanswer initstate ))
(define (myfunb arg answer state )
      (if (done arg state)
           answer
           (myfunb (newarg arg)
                (combine arg
answer)
                (smaller state))))
In this pattern,
Contents    Page-10    Prev    Next    Page+10    Index