On Mon, Dec 29, 2008 at 7:27 PM, wubbie <sunj...@gmail.com> wrote: > > Hi all, > > Looking into ants.clj, I came across > (defn place [[x y]] > (-> world (nth x) (nth y))) > > What -> mean here?
It means (nth (nth world x) y). It "threads" world through the forms that follow. First it makes world the second item in (nth x) and evaluates it. Then it makes that result the second item in (nth y) and evaluates it. -- R. Mark Volkmann Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---