How can I break out of multiple loops?

My first instinct would be to refactor the nested loop into a function and use return to break out.

Leave a Comment