Get key from map

2011-10-24 Thread pistacchio
Hi! Since both (:a {:a 1 :b 2}) and ({:a 1 :b 2} :a) return the correct value, is there any difference between the two? What is the preferred form? Thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Sample (simple!) game on rosettacode.org

2011-10-14 Thread pistacchio
that is a very minimal dungeon exploring game. You can check the code on the wiki (http://rosettacode.org/wiki/RCRPG/Clojure) and I've also set up a git repository on https://github.com/pistacchio/rosettacode.clojure.rcrpg This is my very first approach to Clojure, so I'd love to see comm

When to use mutable state

2011-10-14 Thread pistacchio
I'm implementing a litte "game" thing in Clojure. So far I'm passing around a "world status" object among functions. It is very "functional" and I can simulate any moment of the game my simply feeding the system with a made-up world state. Since Clojure has a very sophisticate system for managing