我是 Clojure 的新手,希望 SO 可以帮助我:
;; a loop to collect data
(defn read-multiple []
(def inputs (list))
(loop [ins inputs]
(def input (read-val ">"))
(if (not= input "0")
(recur (conj ins input)))
(i-would-like-to-return-something-when-the-loop-terminates)))
收集输入后,我如何获取迄今为止收集的所有输入的列表?