How to I break an outer loop from within an nested structure that responds to the break statement in Swift?
break
For example:
while someCondi
Label the loop as outerLoop and whenever needed user break Label: i.e. break outerLoop in our case.
outerLoop: for indexValue in 0.. arr[indexValue+1] { break outerLoop } }