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

Method reduce

src/jvm/clojure/lang/PersistentList.java:133–140  ·  view source on GitHub ↗
(IFn f)

Source from the content-addressed store, hash-verified

131}
132
133public Object reduce(IFn f) {
134 Object ret = first();
135 for(ISeq s = next(); s != null; s = s.next()) {
136 ret = f.invoke(ret, s.first());
137 if (RT.isReduced(ret)) return ((IDeref)ret).deref();;
138 }
139 return ret;
140}
141
142public Object reduce(IFn f, Object start) {
143 Object ret = f.invoke(start, first());

Callers

nothing calls this directly

Calls 7

firstMethod · 0.95
nextMethod · 0.95
nextMethod · 0.95
firstMethod · 0.95
isReducedMethod · 0.95
invokeMethod · 0.65
derefMethod · 0.65

Tested by

no test coverage detected