On Thu, Oct 18, 2012 at 8:26 AM, larry google groups <
[email protected]> wrote:
> Interesting. I am using Clojure 1.3. And I'm using clojure-jack-in inside
> of emacs. What are you using?
I was using Clojure 1.4 via jack-in from emacs. I just tried it again with
lein repl in a clean Clojure 1.3 project and it works fine there too:
nREPL server started on port 55907
REPL-y 0.1.0-beta10
Clojure 1.3.0
...
user=> (def registry (atom {}))
#'user/registry
user=> (import 'java.util.Date)
java.util.Date
user=> (defn add-to-logged-in-registry [this-users-params]
#_=> (let [right-now (. (Date.) getTime)
#_=> new-user-entry (conj this-users-params { "updated" right-now
})]
#_=> (swap! registry (fn [map-of-user-maps]
#_=> (conj map-of-user-maps {:hi new-user-entry})))))
#'user/add-to-logged-in-registry
user=> (add-to-logged-in-registry {:a 1 :b 2})
{:hi {"updated" 1350579386193, :a 1, :b 2}}
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en