i am very enthusiast to learn clojure. but it is look like very hard to solve some simple problem. for example for mad maxer this is my code:
(def aSqh (fn [target] (.distanceTo this target))) (let [enemies (.findEnemies this) enemy (.findNearest this enemies)] (if enemy (when true (def mDenemies (apply max (map aSqh enemies))) (.say this mDenemies) )))
but it face the error that
"[object object] is not the number"
is any one know the solution and in addition, is there anyone like to work together to learning clojure with sharing the knowledge