(def my-ref (ref 1))


(defn update-my-ref
  [new-value]
  (dosync
    (alter my-ref #(+ % new-value))
    (ref-history-count my-ref)))

Hi guys ;

I am trying to understand (ref-history-count ref) . I thought it counts the
number of "old" values in the ref.  But in all my tests, its always
returning zero. How is it used?

Josh

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to