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

Method reduce

src/jvm/clojure/lang/ArrayChunk.java:59–70  ·  view source on GitHub ↗
(IFn f, Object start)

Source from the content-addressed store, hash-verified

57}
58
59public Object reduce(IFn f, Object start) {
60 Object ret = f.invoke(start, array[off]);
61 if(RT.isReduced(ret))
62 return ret;
63 for(int x = off + 1; x < end; x++)
64 {
65 ret = f.invoke(ret, array[x]);
66 if(RT.isReduced(ret))
67 return ret;
68 }
69 return ret;
70}
71}

Callers

nothing calls this directly

Calls 2

isReducedMethod · 0.95
invokeMethod · 0.65

Tested by

no test coverage detected