1 2 static $type$ [[TEST]]Reduce($type$[] a, int idx) { 3 $type$ res = [[TEST_INIT]]; 4 for (int i = idx; i < (idx + SPECIES.length()); i++) { 5 res [[TEST_OP]]= a[i]; 6 } 7 8 return res; 9 } 10 11 static $type$ [[TEST]]ReduceAll($type$[] a) { 12 $type$ res = [[TEST_INIT]]; 13 for (int i = 0; i < a.length; i += SPECIES.length()) { 14 res [[TEST_OP]]= [[TEST]]Reduce(a, i); 15 } 16 17 return res; 18 }