Recursion B
More code tracing to understand recursion.
Trace every step.
1.
(define (helper c)
(cond [(string=? c "light blue")
"orange"]
[else "light blue"]))
(define (mystery a x b c)
(cond [(> a b) empty-image]
[else
(overlay (circle a "solid" c)
(helper (+ a x)
x
b
(helper c)))]))
Trace:
(helper "pink")
(helper "light blue")
(helper "orange")
(mystery 50 20 60 "orange")
(mystery 50 20 70 "light blue")
(mystery 40 30 120 "orange")
What could make this image?
