(defn str->int [str] (if (number? (read-string str)))). I'm not sure if user input can be trusted by the clojure reader so you could check before it's read ...
確定! 回上一頁