On Fri, Oct 19, 2012 at 12:10 AM, larry google groups < lawrencecloj...@gmail.com> wrote:
> (defn add-to-logged-in-registry [this-users-params] > (let [right-now (. (Date.) getTime) > new-user-entry (conj this-users-params { "updated" right-now })] > (if (:username new-user-entry) > (swap! registry assoc (:username new-user-entry) new-user-entry)))) > > The if statement seems to never be true. > conj produces a sequence, not a map, so the lookup of :username fails. Try new-user-entry (assoc this-users-params "updated" right-now) -- 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 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