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

Method alter

src/jvm/clojure/lang/Ref.java:169–172  ·  view source on GitHub ↗
(IFn fn, ISeq args)

Source from the content-addressed store, hash-verified

167}
168
169public Object alter(IFn fn, ISeq args) {
170 LockingTransaction t = LockingTransaction.getEx();
171 return t.doSet(this, fn.applyTo(RT.cons(t.doGet(this), args)));
172}
173
174public void touch(){
175 LockingTransaction.getEx().doEnsure(this);

Callers

nothing calls this directly

Calls 5

getExMethod · 0.95
doSetMethod · 0.95
consMethod · 0.95
doGetMethod · 0.95
applyToMethod · 0.65

Tested by

no test coverage detected