I often find I want to repeat a block of code until some state stops changing. As an example, suppose rects is a list of rectangles and rect is a
rects
rect