I'm working on a clojure program that includes these lines of code:
(defn makeStruct
"Take a line of input and return a starbucks-struct"
[input]
(let[(apply struct storeinfo (clojure.string/split input #","))]
)
)
And am getting this compiler error:
Exception in thread "main" java.lang.IllegalArgumentException: let requires an even number of forms in binding vector (clojureHW.clj:24)
I am very new to clojure and am not entirely sure what I am doing, but in this case input is a string and I am splitting it into a vector to initialize my struct. Am I using the syntax of let incorrectly?