(Object key, Object val)
| 114 | } |
| 115 | |
| 116 | public PersistentTreeMap assocEx(Object key, Object val) { |
| 117 | Box found = new Box(null); |
| 118 | Node t = add(tree, key, val, found); |
| 119 | if(t == null) //null == already contains key |
| 120 | { |
| 121 | throw Util.runtimeException("Key already present"); |
| 122 | } |
| 123 | return new PersistentTreeMap(comp, t.blacken(), _count + 1, meta()); |
| 124 | } |
| 125 | |
| 126 | public PersistentTreeMap assoc(Object key, Object val){ |
| 127 | Box found = new Box(null); |
nothing calls this directly
no test coverage detected