I can't manage to resolve a variable and use it. The problem seems trivial so most likely I missed it when reading the tutorials:
(def v 42) ;=> #'user/v
(+ v 1) ;=> 43
(+ (resolve 'v) 1) ;ClassCastException clojure.lang.Var cannot be cast to java.lang.Number
However this works:
(defn w [] 4) ;=> #'user/w
(+ (w) 1) ;=> 5
(+ ((resolve 'w)) 1) ;=> 5