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

Method assocEx

src/jvm/clojure/lang/PersistentStructMap.java:172–176  ·  view source on GitHub ↗
(Object key, Object val)

Source from the content-addressed store, hash-verified

170}
171
172public IPersistentMap assocEx(Object key, Object val) {
173 if(containsKey(key))
174 throw Util.runtimeException("Key already present");
175 return assoc(key, val);
176}
177
178public IPersistentMap without(Object key) {
179 Map.Entry e = def.keyslots.entryAt(key);

Callers

nothing calls this directly

Calls 3

containsKeyMethod · 0.95
runtimeExceptionMethod · 0.95
assocMethod · 0.95

Tested by

no test coverage detected