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

Method put

src/jvm/clojure/lang/TransactionalHashMap.java:77–83  ·  view source on GitHub ↗
(K k, V v)

Source from the content-addressed store, hash-verified

75}
76
77public V put(K k, V v){
78 Ref r = bins[binFor(k)];
79 IPersistentMap map = (IPersistentMap) r.deref();
80 Object ret = map.valAt(k);
81 r.set(map.assoc(k, v));
82 return (V) ret;
83}
84
85public V remove(Object k){
86 Ref r = bins[binFor(k)];

Callers 1

putAllMethod · 0.95

Calls 5

binForMethod · 0.95
derefMethod · 0.95
setMethod · 0.95
assocMethod · 0.95
valAtMethod · 0.65

Tested by

no test coverage detected