On Sun, Dec 14, 2008 at 8:49 AM, bOR_ <[email protected]> wrote:
>
> Thanks! Needed only a small change then :)
>
> (time
>  (do
>   (dotimes i popsize
>            (doseq a [birth death infect infect evolve evolve evolve
> evolve evolve]
>                   (send-off (agent i) a)))
>   (dosync (commute year inc))))
> (report)

Note that you've now got popsize*9 agents, and the actions in your
vector are not guaranteed to happen in order for any given 'i' -- I
don't know if that matters to you or not.

--Chouser

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to