File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 1454
1454
(defn- ci-reduce
1455
1455
" Accepts any collection which satisfies the ICount and IIndexed protocols and
1456
1456
reduces them without incurring seq initialization"
1457
- ([cicoll f]
1457
+ ([^not-native cicoll f]
1458
1458
(let [cnt (-count cicoll)]
1459
1459
(if (zero? cnt)
1460
1460
(f )
@@ -1465,18 +1465,9 @@ reduces them without incurring seq initialization"
1465
1465
@nval
1466
1466
(recur nval (inc n))))
1467
1467
val)))))
1468
- ([cicoll f val]
1468
+ ([^not-native cicoll f val]
1469
1469
(let [cnt (-count cicoll)]
1470
1470
(loop [val val, n 0 ]
1471
- (if (< n cnt)
1472
- (let [nval (f val (-nth cicoll n))]
1473
- (if (reduced? nval)
1474
- @nval
1475
- (recur nval (inc n))))
1476
- val))))
1477
- ([cicoll f val idx]
1478
- (let [cnt (-count cicoll)]
1479
- (loop [val val, n idx]
1480
1471
(if (< n cnt)
1481
1472
(let [nval (f val (-nth cicoll n))]
1482
1473
(if (reduced? nval)
You can’t perform that action at this time.
0 commit comments