MCPcopy Index your code
hub / github.com/clojure/clojure / reduce

Method reduce

src/jvm/clojure/lang/APersistentVector.java:550–557  ·  view source on GitHub ↗
(IFn f)

Source from the content-addressed store, hash-verified

548 }
549
550 public Object reduce(IFn f) {
551 Object ret = v.nth(i);
552 for(int x = i + 1; x < v.count(); x++) {
553 ret = f.invoke(ret, v.nth(x));
554 if (RT.isReduced(ret)) return ((IDeref)ret).deref();
555 }
556 return ret;
557 }
558
559 public Object reduce(IFn f, Object start) {
560 Object ret = f.invoke(start, v.nth(i));

Callers

nothing calls this directly

Calls 5

isReducedMethod · 0.95
nthMethod · 0.65
countMethod · 0.65
invokeMethod · 0.65
derefMethod · 0.65

Tested by

no test coverage detected