I am new to clojure and i have been trying out different programs. Here is my program :
(defn sdsu-reverse [x] (loop [n (count x) x x] (if (= 0 n) (x)
class cast exception in your code is because you try to make a list from a constant i.e. (x) so just replace it with x you won't get class cast exception.