Lines Matching refs:simpleArray
107 var simpleArray = [2,4,6] variable
110 [[0, 2, 0, simpleArray, 2],
111 [2, 4, 1, simpleArray, 6],
112 [6, 6, 2, simpleArray, 12]],
113 simpleArray, sum, 0);
116 [[1, 2, 0, simpleArray, 2],
117 [2, 4, 1, simpleArray, 8],
118 [8, 6, 2, simpleArray, 48]],
119 simpleArray, prod, 1);
122 [[0, 2, 0, simpleArray, 200],
123 [200, 4, 1, simpleArray, 240],
124 [240, 6, 2, simpleArray, 246]],
125 simpleArray, dec, 0);
127 testReduce("reduce", "SimpleReduceAccumulate", simpleArray,
128 [[[], 2, 0, simpleArray, [2]],
129 [[2], 4, 1, simpleArray, [2, 4]],
130 [[2,4], 6, 2, simpleArray, simpleArray]],
131 simpleArray, accumulate, []);
238 [[0, 6, 2, simpleArray, 6],
239 [6, 4, 1, simpleArray, 10],
240 [10, 2, 0, simpleArray, 12]],
241 simpleArray, sum, 0);
244 [[1, 6, 2, simpleArray, 6],
245 [6, 4, 1, simpleArray, 24],
246 [24, 2, 0, simpleArray, 48]],
247 simpleArray, prod, 1);
250 [[0, 6, 2, simpleArray, 6],
251 [6, 4, 1, simpleArray, 46],
252 [46, 2, 0, simpleArray, 246]],
253 simpleArray, dec, 0);
255 testReduce("reduceRight", "SimpleReduceRightAccumulate", simpleArray,
256 [[[], 6, 2, simpleArray, [,,6]],
257 [[,,6], 4, 1, simpleArray, [,4,6]],
258 [[,4,6], 2, 0, simpleArray, simpleArray]],
259 simpleArray, accumulate, []);