Code Review

Compare your solutions

    #| BEGIN (Введите свое решение) |#
(define (double x) (+ x x))

(define (halve x) (/ x 2))

(define (fast-mul a b)
  (cond ((= b 0) 0)
        ((even? b) (double (fast-mul a (halve b))))
        ((odd? b) (+ a (fast-mul a (- b 1))))))
#| END |#