Re: Ant simulation questions: keyword functions and #' for agent calls

2008-11-03 Thread Kelsin
On Nov 3, 3:35 pm, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > On 03.11.2008, at 17:22, Kelsin wrote: > > > First is the use of keywords as the predicate in some forms. For > > example in the turn function: (:ant @p) > > > Does :ant become a function of the map because it's a map? Can you > > alway

Re: Ant simulation questions: keyword functions and #' for agent calls

2008-11-03 Thread Konrad Hinsen
On 03.11.2008, at 17:22, Kelsin wrote: > First is the use of keywords as the predicate in some forms. For > example in the turn function: (:ant @p) > > Does :ant become a function of the map because it's a map? Can you > always do this? Isn't this the same as (@p :ant)? Yes, yes, and yes. > Is

Ant simulation questions: keyword functions and #' for agent calls

2008-11-03 Thread Kelsin
Howdy, been enjoying learning Clojure and watching some screencasts but had to simple (I think) questions about the ant code that I haven't been able to find info about on the site or in this group (though I admit my lack of knowledge about what to call these two questions could lead me to not fin