1.3.0 permalink Arrow_down_16x16

ref-history-count

clojure.core

  • (ref-history-count ref)
Returns the history count of a ref

1 Example top

  • user=> (def store (ref {}))
    #'user/store
    user=> (ref-history-count store)
    0
    user=> (ref-max-history store)
    10
    user=> (ref-min-history store)
    0
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:2200 top

(defn ref-history-count
  "Returns the history count of a ref"
  {:added "1.1"
   :static true}
  [^clojure.lang.Ref ref]
    (.getHistoryCount ref))
Vars in clojure.core/ref-history-count:
Used in 0 other vars

Comments top

No comments for ref-history-count. Log in to add a comment.