ClojureDocs

导航

命名空间

alter

clojure.core

自 1.0 起可用 ()
  • (alter ref fun & args)
Must be called in a transaction. Sets the in-transaction-value of
ref to:
 (apply fun in-transaction-value-of-ref args)
 and returns the in-transaction-value of ref.