I am trying castin spels in clojure and I get this error. What does it mean??
user=> (spel-print describe-paths 'living-room game-map) java.lang.IllegalArgumentException: Wrong number of args (3) passed to: user$spel-print (NO_SOURCE_FILE:0) ============================== code is snoring loudly on the couch -) (west door garden) (upstairs stairway attic)) 'garden '((you are in a beautiful garden - there is a well in front of you -) (east door living-room)) 'attic '((you are in the attic of the wizards house - there is a giant welding torch in the corner -) (downstairs stairway living-room)))) ;; Object locations in a hash map (def object-locations (hash-map 'whiskey-bottle 'living-room 'bucket 'living-room 'chain 'garden 'frog 'garden)) (def location 'living-room) (defn describe-location [location game-map] (first (location game-map))) ;; in clojure backquote mode, the ~ escapes the mode instead of the comma (defn describe-path [path] `(there is a ~(second path) going ~(first path) from here -)) (defn describe-paths [location game-map] (apply concat (map describe-path (rest (get game-map location))))) (defn is-at? [obj loc obj-loc] (= (obj obj-loc) loc)) -- 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 Note that posts from new members are moderated - please be patient with your first post. 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