both (my-ref :a) and (@my-ref :a) returns 1. hmmm...
On Jan 6, 11:01 am, "Mark Volkmann" <r.mark.volkm...@gmail.com> wrote: > Why does this output 1? > > (def my-ref (ref {:a 1})) > (my-ref :a) > > I thought I could only access data in a ref by dereferencing it, but > this shows otherwise. > > -- > R. Mark Volkmann > Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---