You're viewing version 1.2.0 of ref-history-count. The latest stable version of Clojure Core is 1.3.0.
1.2.0 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:1875 top

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

Comments top

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