Generating a symbol from a string and applying it as a function
问题 I'm just learning clojure, and I'm hitting a wall. I'm trying to read an arithmetic expression as an infix string and process it in Clojure. e.g. "1 + 2" -> (+ 1 2) I read in the "+" and turn it into a symbol like this: (def plus (symbol "clojure.core" "+")) Which appears to work properly, but when I call it, I don't get what I'm expecting: user=> plus + user=> (plus 1 1) 1 user=> (plus 1 2) 2 user=> (plus 1 2 3) ArityException Wrong number of args (3) passed to: Symbol clojure.lang.AFn