Best way to break out of recursive loop in Julia?

(topic deleted by author)