(IFn fn)
| 298 | } |
| 299 | |
| 300 | synchronized public void commuteRoot(IFn fn) { |
| 301 | Object newRoot = fn.invoke(root); |
| 302 | validate(getValidator(), newRoot); |
| 303 | Object oldroot = root; |
| 304 | this.root = newRoot; |
| 305 | ++rev; |
| 306 | notifyWatches(oldroot,newRoot); |
| 307 | } |
| 308 | |
| 309 | synchronized public Object alterRoot(IFn fn, ISeq args) { |
| 310 | Object newRoot = fn.applyTo(RT.cons(root, args)); |
nothing calls this directly
no test coverage detected