Tag: iteration

3966 For-each over an array in JavaScript? 2012-02-17T13:51:48.683

2950 Iterate through a HashMap 2009-06-30T23:24:14.333

2686 How to efficiently iterate over each entry in a Java Map? 2008-09-05T21:12:48.370

1717 How does PHP 'foreach' actually work? 2012-04-07T19:33:57.893

1595 Why is using "for...in" with array iteration a bad idea? 2009-02-01T09:46:38.510

758 How to remove items from a list while iterating? 2009-07-30T15:36:42.273

480 Ways to iterate over a list in Java 2013-08-23T19:00:14.920

440 Iterating each character in a string using Python 2009-02-11T19:22:15.140

421 How do I iterate over an NSArray? 2009-06-14T14:21:10.227

400 How to skip to next iteration in jQuery.each() util? 2009-01-26T22:14:14.937

383 How do I use Python's itertools.groupby()? 2008-08-03T18:27:09.687

326 What exactly are iterator, iterable, and iteration? 2012-03-27T06:03:37.500

293 In Ruby, how do I skip a loop in a .each loop, similar to 'continue' 2010-11-19T23:32:30.273

288 Way to go from recursion to iteration 2008-10-01T20:38:46.373

277 How to loop through a C++ map of maps? 2011-01-30T19:13:24.103

267 Iterating through a range of dates in Python 2009-06-29T20:16:02.147

257 How to iterate over a JavaScript object? 2013-01-17T12:36:15.157

246 Is recursion ever faster than looping? 2010-04-16T06:42:43.357

245 What is the easiest/best/most correct way to iterate through the characters of a string in Java? 2008-10-13T06:10:15.693

218 How do I iterate through child elements of a div using jQuery? 2010-06-11T16:13:26.270

194 How do I loop through a list by twos? 2010-06-07T14:00:42.580

189 Is there a way to iterate over a dictionary? 2009-08-16T14:34:38.680

188 Is generator.next() visible in python 3.0? 2009-07-02T09:29:44.727

182 How to loop through array in jQuery? 2010-10-15T15:04:10.560

179 "for" vs "each" in Ruby 2010-07-20T21:28:11.857

164 Can every recursion be converted into iteration? 2009-05-31T09:48:04.583

137 Fastest way to iterate over all the chars in a String 2012-01-17T12:02:13.323

134 How to loop backwards in python? 2010-08-13T12:25:08.880

134 Remove elements from collection while iterating 2012-05-03T13:03:59.860

130 How to iterate (keys, values) in javascript? 2016-01-21T01:11:53.807

126 Is the order guaranteed for the return of keys and values from a LinkedHashMap object? 2010-05-27T18:35:45.197

119 Python list iterator behavior and next(iterator) 2013-05-29T13:17:46.920

115 How do I access properties of a javascript object if I don't know the names? 2009-03-23T21:05:43.217

114 Iterating a JavaScript object's properties using jQuery 2009-07-08T08:53:32.960

112 Is there a better way to iterate over two lists, getting one element from each list for each iteration? 2009-12-17T02:00:55.467

110 How to loop through an array containing objects and access their properties 2013-05-18T16:50:30.580

108 How to iterate through range of Dates in Java? 2010-12-26T18:22:01.977

106 Python using enumerate inside list comprehension 2012-05-27T21:03:37.023

105 How to produce a range with step n in bash? (generate a sequence of numbers with increments) 2009-06-08T17:31:55.557

104 Remove Elements from a HashSet while Iterating 2009-07-10T15:52:36.210

104 How to loop through key/value object in Javascript? 2010-06-02T14:51:44.930

103 C# Iterating through an enum? (Indexing a System.Array) 2009-01-27T09:11:44.687

101 Iterate over object attributes in python 2012-07-24T18:44:55.827

90 Skipping Iterations in Python 2009-02-14T19:48:04.270

90 Is there a reason that we cannot iterate on "reverse Range" in ruby? 2010-01-15T09:36:33.900

89 What's the safest way to iterate through the keys of a Perl hash? 2008-08-06T02:53:13.033

85 Best way to iterate through a Perl array 2012-05-07T18:43:13.033

81 What is the perfect counterpart in Python for "while not EOF" 2013-03-24T14:25:31.740

80 Ruby each_with_index offset 2011-04-13T08:26:41.510

80 recursion versus iteration 2013-03-28T17:11:15.493

78 How do I modify an array while I am iterating over it in Ruby? 2009-11-21T00:07:20.043

76 How to make generic computations over heterogeneous argument packs of a variadic template function? 2013-01-10T15:19:29.680

74 How do I iterate through each element in an n-dimensional matrix in MATLAB? 2009-04-17T02:12:19.317

74 Time complexity of Euclid's Algorithm 2010-10-20T16:59:07.193

71 Efficient iteration with index in Scala 2011-07-26T16:39:18.147

67 Iterate an Enumeration in Java 8 2014-04-24T06:51:58.087

63 Is if(items != null) superfluous before foreach(T item in items)? 2011-06-23T14:02:55.543

62 How to iterate std::set? 2012-10-12T16:22:17.373

61 is the Java HashMap keySet() iteration order consistent? 2009-12-10T17:50:41.017

61 Why should recursion be preferred over iteration? 2010-02-02T16:08:32.280

61 Is it "iterate through" or "iterate over" something? 2010-04-26T17:14:14.083

61 How can I use Array#delete while iterating over the array? 2010-07-15T22:51:42.763

61 Java: Most efficient method to iterate over all elements in a org.w3c.dom.Document? 2011-03-22T04:55:15.890

60 What is the difference between Sprint and Iteration in Scrum and length of each Sprint? 2009-08-04T12:45:24.647

58 How to iterate over an array and remove elements in JavaScript 2013-05-03T05:57:29.840

58 Loop through a list in Python and modify it 2017-06-19T14:53:51.003

57 std::queue iteration 2009-08-11T08:42:17.367

55 How does a for loop work, specifically for(;;)? 2011-08-16T16:11:50.883

54 Does iterrows have performance issues? 2014-07-21T17:19:17.380

53 Java : Iteration through a HashMap, which is more efficient? 2011-04-28T23:52:04.563

53 Why doesn't $.each() iterate through every item? 2012-11-30T15:50:29.410

52 Iteration in LaTeX 2010-04-01T16:03:05.997

51 "For" loop first iteration 2009-12-18T11:03:26.560

51 How do I iterate over the properties of an anonymous object in C#? 2010-04-07T17:23:39.430

51 Start index for iterating Python list 2011-05-27T06:28:56.683

50 Why is it bad to use an iteration variable in a lambda expression 2008-10-22T22:47:52.320

49 How to reverse tuples in Python? 2012-04-18T02:28:44.193

49 In Python, how do I iterate over one iterator and then another? 2014-02-17T10:04:54.377

47 How to iterate through two IEnumerables simultaneously? 2010-04-27T14:17:50.763

47 How to iterate over a column vector in Matlab? 2010-08-11T18:15:56.117

47 Intersecting two dictionaries in Python 2013-09-01T00:13:52.943

46 Iterate over two arrays simultaneously 2015-03-23T18:27:51.653

45 Efficient looping through AS3 dictionary 2010-03-05T12:53:12.113

44 Is there a Python equivalent of range(n) for multidimensional ranges? 2012-04-10T17:15:34.983

43 Design patterns for converting recursive algorithms to iterative ones 2009-10-11T05:36:38.090

43 Iterating on a file using Python 2012-04-21T01:00:16.600

42 Using 'in' to match an attribute of Python objects in an array 2008-08-03T13:19:16.983

42 Python: Adding element to list while iterating 2010-09-20T14:54:23.923

42 java foreach skip first iteration 2011-04-18T23:41:01.590

42 Javascript Set vs. Array performance 2016-08-17T23:15:45.030

41 Can all iterative algorithms be expressed recursively? 2010-01-19T13:08:48.143

41 Is it possible to merge iterators in Java? 2010-08-31T14:58:44.117

41 Ruby array each_slice_with_index? 2011-05-12T20:20:41.073

40 How to iterate over a string in C? 2010-07-09T14:58:00.873

40 "Continue" (to next iteration) on VBScript 2010-10-15T16:13:08.583

40 Iterating through files in a folder with nested folders - Cocoa 2011-04-21T20:33:23.490

40 Why can't we assign a foreach iteration variable, whereas we can completely modify it with an accessor? 2011-10-20T15:11:55.980

38 How to modify or delete items from an enumerable collection while iterating through it in C# 2008-11-21T11:21:11.863

38 How to iterate through an array starting from the last element? (Ruby) 2010-02-27T03:57:08.910