Hello fellow Clojurists,

I have just started learning Clojure is a side project in a Java bootcamp 
at The Iron Yard.  I am tackling a project that I think will require a 
dynamically built vector of hashmaps. 

I am reading "Clojure for the Brave and True" and doing lots of research on 
the web, but Google will only answer questions that i know to ask...

I have found atoms <http://clojure.org/reference/atoms> and agents 
<http://clojure.org/reference/agents> and am leaning towards using an atom 
for my specific problem.  

To expand on my problem. The challenge was originally to develop an app to 
manage an Animal Shelter in Java. I finished that well ahead of the class 
so I was challenged with reimplementing it in Clojure. In Java the core 
data element is a class called Animal, that is used as the basis of an 
ArrayList. My thought is to use a hashmap:

{:name animals-name :species animals-species :breed animals-breed 
:description notes}

And build a vector of these hashmaps.

Given that animals are constantly coming into the shelter as rescues and 
being adopted out of the shelter, the current list of shelter residents 
needs to be updated with each new rescue or adoption.

My questions are:

   1. Atom, Agent or something else?
   2. Am I thinking about my data structure in a Clojure-compatible way.

I will happily RTFM - please point me to the most helpful FM and I will RT.

Chris

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to