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

Method kvreduce

src/jvm/clojure/lang/PersistentArrayMap.java:473–480  ·  view source on GitHub ↗
(IFn f, Object init)

Source from the content-addressed store, hash-verified

471}
472
473public Object kvreduce(IFn f, Object init){
474 for(int i=0;i < array.length;i+=2){
475 init = f.invoke(init, array[i], array[i+1]);
476 if(RT.isReduced(init))
477 return ((IDeref)init).deref();
478 }
479 return init;
480}
481
482public ITransientMap asTransient(){
483 return new TransientArrayMap(array);

Callers

nothing calls this directly

Calls 3

isReducedMethod · 0.95
invokeMethod · 0.65
derefMethod · 0.65

Tested by

no test coverage detected