Try

(map deref agents)

On Nov 14, 12:49 pm, Kevin Q <kevin.jing....@gmail.com> wrote:
> I have a list of agents, each of which has a hasmap state. I want to
> get a list of values from the list of agents, naturally I used the map
> function and print the result of the map:
>
> (println
>   (map #(@%) agents))
>
> However, when I run this, I got error "Wrong number of args passed to:
> PersistentHashMap"
>
> I'm wondering why is this happening? Prior to calling the map
> function, I did (apply await agents) to wait for all my agents to
> finish. Does it affect things?
>
> Thanks,

-- 
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

Reply via email to