title: How to break out of nested for loops in Julia
body: <p>I have tried to break out of nested loops in a quite ineffective way:</p>
  
  <pre><code>BreakingPoint = false
  a=["R1","R2","R3"]
  b=["R2","R3","R4"]
  for i in a
    for j in b
      if i == j
        BreakingPoint = true
        println("i = $i, j = $j.")
      end
      if BreakingPoint == true; break; end
    end
    if BreakingPoint == true; break; end
  end
  </code></pre>
  
  <p>Is there an easier way to do that? In my actual problem, I have no idea about what are in arrays <code>a</code> and <code>b</code>, apart from they are <code>ASCIIString</code>s. The array names (<code>a</code> and <code>b</code> in sample code) are also auto-generated through meta-programming methods.</p>