michael@0: function testScan() { michael@0: // Test reduce elemental fun args michael@0: var p = [1,2,3,4]; michael@0: var r = p.scanPar(function (a, b) { michael@0: assertEq(a >= 1 && a <= 4, true); michael@0: assertEq(b >= 1 && b <= 4, true); michael@0: return a; michael@0: }); michael@0: } michael@0: michael@0: if (getBuildConfiguration().parallelJS) michael@0: testScan();