RosettaCodeData/Task/Reverse-a-string/Clojure/reverse-a-string-1.clj
2023-07-01 13:44:08 -04:00

3 lines
112 B
Clojure

(defn reverse-string [s]
"Returns a string with all characters in reverse"
(apply str (reduce conj '() s)))