我想學習clojure,我遇到了這段代碼。任何人都可以解釋究竟發生了什麼?前面有星號的線條是我需要幫助理解的線條。謝謝!理解clojure中的淺反轉?
(defn shallow-reverse
"Reverses the top level elements of lst"
*([lst]
(shallow-reverse() lst))
*([reversed lst]
(cond
(empty? lst) reversed
:else (recur (cons (first lst) reversed) (rest lst)))))