loops 536

  1. For-each over an array in JavaScript?
  2. Iterate through a HashMap
  3. Accessing the index in 'for' loops?
  4. Why is printing “B” dramatically slower than printing “#”?
  5. JavaScript closure inside loops – simple practical example
  6. How do I loop through or enumerate a JavaScript object?
  7. What is the best way to iterate over a Dictionary in C#?
  8. How does PHP 'foreach' actually work?
  9. Breaking out of nested loops in Java
  10. Iterate through object properties
  11. Looping through the content of a file in Bash
  12. C# loop - break vs. continue
  13. What is the difference between range and xrange functions in Python 2.X?
  14. Calling remove in foreach loop in Java
  15. Why does this go into an infinite loop?
  16. Traverse a list in reverse order in Python
  17. Syntax for a single-line Bash infinite while loop
  18. How to break out of jQuery each Loop
  19. Ways to iterate over a list in Java
  20. Is there a “do … while” loop in Ruby?
  21. How do I iterate over a JSON structure?
  22. How to determine the first and last iteration in a foreach loop?
  23. Asking the user for input until they give a valid response
  24. What is the most “pythonic” way to iterate over a list in chunks?
  25. How to find the foreach index
  26. How to remove elements from a generic list while iterating over it?
  27. Looping through array and removing items, without breaking for loop
  28. What is the “right” way to iterate through an array in Ruby?
  29. Best way to break from nested loops in Javascript?
  30. Difference between declaring variables before or in loop?
  31. How to loop through a C++ map of maps?
  32. In Ruby, how do I skip a loop in a .each loop, similar to 'continue'
  33. How do I skip an iteration of a `foreach` loop?
  34. How do I break out of a loop in Perl?
  35. do { … } while (0) — what is it good for?
  36. How do I add a delay in a JavaScript loop?
  37. Is recursion ever faster than looping?
  38. Are loops really faster in reverse?
  39. How to do something to each file in a directory with a batch script
  40. Are loops really faster in reverse?
  41. Is there a way to access an iteration-counter in Java's for-each loop?
  42. How to iterate over a JavaScript object?
  43. How to Iterate over a Set/HashSet without an Iterator?
  44. Iterating over all the keys of a map
  45. Is there a way to loop through a table variable in TSQL without using a cursor?
  46. How can I make sense of the `else` clause of Python loops?
  47. What's the fastest way to loop through an array in JavaScript?
  48. Breaking out of nested loops
  49. Syntax of for-loop in SQL Server
  50. Pythonic way to combine FOR loop and IF statement