Top "Iteration" questions

Iterations are the successive repetitions in loops such as for, foreach or while.

Output specific key value in object for each element in array with jq for JSON

I have an array: [ { "AssetId": 14462955, "Name": "Cultural Item" }, { "AssetId": 114385498, "Name": "Redspybot" }, { "AssetId": 29715011, "Name": "American Cowboy" }, { "AssetId": 98253651, "Name": "Mahem" } ] I would …

iteration jq
Iterate an Enumeration in Java 8

Is it possible to iterate an Enumeration by using Lambda Expression? What will be the Lambda representation of the following …

java lambda iteration enumeration java-8
Javascript Set vs. Array performance

It maybe because Sets are relatively new to Javascript but I haven't been able to find an article, on StackO …

javascript arrays performance set iteration
pythonic way to iterate over part of a list

I want to iterate over everything in a list except the first few elements, e.g.: for line in lines[2:]: …

python list iteration
Is the order guaranteed for the return of keys and values from a LinkedHashMap object?

I know LinkedHashMap has a predictable iteration order (insertion order). Does the Set returned by LinkedHashMap.keySet() and the Collection …

java iteration linkedhashmap
Efficient looping through AS3 dictionary

for (var k in dictionary) { var key:KeyType = KeyType(k); var value:ValType = ValType(dictionary[k]); // <-- lookup // do …

actionscript-3 iterator iteration
How does a for loop work, specifically for(;;)?

Looking through some old company code, I came across a for loop that looks like this: for (;;) { //Some stuff } I …

java loops syntax for-loop iteration
How can I use Array#delete while iterating over the array?

I have an array that I want to iterate over and delete some of the elements. This doesn't work: a = [1, 2, 3, 4, 5] …

ruby arrays iteration
Java Iteration over a keySet

I have the following Java code: public void myMethod (final Map pFeatureGroupsFromPackage) { final Set<String> keys = pFeatureGroupsFromPackage.keySet(); …

java optimization iteration keyset
Iterate over JsonObject properties

I would like to iterate through the big wrapping JsonObject with Gson. My final aim is to get an ArrayList …

java json iteration gson