loops 487

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