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

Method assocEx

src/jvm/clojure/lang/PersistentHashMap.java:161–165  ·  view source on GitHub ↗
(Object key, Object val)

Source from the content-addressed store, hash-verified

159}
160
161public IPersistentMap assocEx(Object key, Object val) {
162 if(containsKey(key))
163 throw Util.runtimeException("Key already present");
164 return assoc(key, val);
165}
166
167public IPersistentMap without(Object key){
168 if(key == null)

Callers

nothing calls this directly

Calls 3

containsKeyMethod · 0.95
runtimeExceptionMethod · 0.95
assocMethod · 0.95

Tested by

no test coverage detected