You're viewing version 1.2.0 of ref-max-history. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

ref-max-history

clojure.core

  • (ref-max-history ref)
  • (ref-max-history ref n)
Gets the max-history of a ref, or sets it and returns the ref

0 Examples top

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:1889 top

(defn ref-max-history
  "Gets the max-history of a ref, or sets it and returns the ref"
  {:added "1.1"}
  ([^clojure.lang.Ref ref]
    (.getMaxHistory ref))
  ([^clojure.lang.Ref ref n]
    (.setMaxHistory ref n)))
Vars in clojure.core/ref-max-history: defn ref
Used in 0 other vars

Comments top

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