Top "Nested-loops" questions

A logical structure used in computer programming where two or more repeating statements are placed in a "nested" form (i.e., one loop is situated within the body of another).

Breaking the nested loop

I'm having problem with nested loop. I have multiple number of posts, and each post has multiple number of images. …

php loops nested-loops
How to jump to next top level loop?

I have a for loop nested in another for loop. How can I make it so that when somethign happens …

r loops nested-loops
How to break from nested loops in Ruby?

assume the following ruby code: bank.branches do |branch| branch.employees.each do |employee| NEXT BRANCH if employee.name = "John …

ruby loops nested-loops
How to speed up python loop

I had a look at several dicussions on several sites and none of them gave me a solution. This piece …

python performance nested-loops
for loop vs while loop vs foreach loop PHP

1st off I'm new to PHP. I have been using for loop,while loop,foreach loop in scripts. I wonder …

php performance loops nested-loops control-structure
In python is there an easier way to write 6 nested for loops?

This problem has been getting at me for a while now. Is there an easier way to write nested for …

python for-loop nested-loops
Nested lists with streams in Java8

I have a list of objects A. Each object A in this list contains list of object B and the …

java list java-8 java-stream nested-loops
Is using labels in JavaScript bad practice?

I just found out about using label s in JavaScript, such as: for (var i in team) { if(i === "something") { …

javascript loops label nested-loops break
Exit from nested loops at desired level

Possible Duplicate: Breaking out of a nested loop How to exit from nested loops at a specific level. For example: …

c# break nested-loops
Java : Cartesian Product of a List of Lists

I have a problem that is really kind of a general programming question, but my implementation is in Java, so …

java data-structures recursion nested-loops linkedhashmap