Error thrown when collection is modified within foreach loop
43239
What is the best way to modify a list in a 'foreach' loop?
145411
Why doesn't console.log work when passed as a parameter to forEach?
60497
System.QueryException: List has more than 1 row for assignment to SObject
119202
How do I break multiple foreach loops?
131151
change initial array inside the foreach loop?
4363
Does foreach evaluate the array at every iteration?
129503
Can't modify list elements in a loop
7608
PHP Foreach Loop and DOMNodeList
101301
Starting Tasks In foreach Loop Uses Value of Last Item
91453
How to modify an array's values by a foreach loop?
115290
Performance issue - clear and reuse a collection OR throw it and get a new one
17153
how to make foreach loop in MVC to set new value to items.
72170
Redefining variables in a \foreach loop
130868
rewrite access to collection to avoid "double" finding
57818
Is it possible to handle exceptions within LINQ queries?
124961
Do Apex collections implement iterable?
102497
Inserting text gives objectcollection error