author | attila |
Fri, 20 Feb 2015 15:47:28 +0100 | |
changeset 29133 | 1cd7d8af99ba |
parent 19469 | a5d34b586cea |
permissions | -rw-r--r-- |
19469
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
1 |
iterating on an object of class [I |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
2 |
forEach 0 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
3 |
forEach 1 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
4 |
forEach 2 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
5 |
forEach 3 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
6 |
reduce 0 1 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
7 |
reduce 1 2 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
8 |
reduce 3 3 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
9 |
left sum 6 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
10 |
reduceRight 3 2 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
11 |
reduceRight 5 1 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
12 |
reduceRight 6 0 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
13 |
right sum 6 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
14 |
squared 0,1,4,9 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
15 |
iterating on an object of class java.util.ArrayList |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
16 |
forEach 1 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
17 |
forEach 3 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
18 |
forEach 5 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
19 |
forEach 7 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
20 |
reduce 1 3 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
21 |
reduce 4 5 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
22 |
reduce 9 7 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
23 |
left sum 16 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
24 |
reduceRight 7 5 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
25 |
reduceRight 12 3 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
26 |
reduceRight 15 1 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
27 |
right sum 16 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
28 |
squared 1,9,25,49 |
29133
1cd7d8af99ba
8072426: Can't compare Java objects to strings or numbers
attila
parents:
19469
diff
changeset
|
29 |
iterating on 2,4,6,8 |
19469
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
30 |
forEach 2 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
31 |
forEach 4 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
32 |
forEach 6 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
33 |
forEach 8 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
34 |
reduce 2 4 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
35 |
reduce 6 6 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
36 |
reduce 12 8 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
37 |
left sum 20 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
38 |
reduceRight 8 6 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
39 |
reduceRight 14 4 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
40 |
reduceRight 18 2 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
41 |
right sum 20 |
a5d34b586cea
8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
sundar
parents:
diff
changeset
|
42 |
squared 4,16,36,64 |