22a. Recursion Self Quiz

A brief quiz to make sure you understand recursion.

draw-cats: string -> image

Draw one cat for every time the word “cat” appears in the string.

(draw-cats "nyan cat")

(draw-cats "cat dog cat")