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).

How to break outer loops from inner structures that respond break (loops/switch)

How to I break an outer loop from within an nested structure that responds to the break statement in Swift? …

loops nested-loops swift
Looping over pairs of values in bash

I have 10 text files and I want to paste each file with its pair, such that I have 5 total files. …

bash for-loop nested-loops paste
Nested loop in Vue

I have an object of objects that I am passing with vue and I am doing this to run: <…

javascript vue.js nested-loops
Is there a way to loop through a multidimensional array without knowing it's depth?

So far, if I have to loop through a multidimensional array, I use a foreach loop for each dimension. e.…

php arrays nested-loops
How to use something like a continue statement in nested for loops?

I have a class of objects and need to compare one property of each object to the same property of …

c++ loops conditional nested-loops continue
Terraform 0.12 nested for loops

I am trying to implement nested for loops using Terraform 0.12's new features in order to loop through AWS IAM …

nested-loops terraform
PHP Looping Template Engine - From Scratch

For a group project I am trying to create a template engine for PHP for the people less experienced with …

php parsing templates nested-loops
Bash exit doesn't exit

I wonder why this script continues to run even with an explicit exit command. I have two files: file1.txt …

bash exit nested-loops abort
Java 8 nested loops with streams & performance

In order to practise the Java 8 streams I tried converting the following nested loop to the Java 8 stream API. It …

java performance java-8 nested-loops java-stream
C++ nested iterators

Is it OK to have a nested iterator like the following? for (vector<type>::iterator i = list.begin(); …

c++ iterator nested-loops random-access