RosettaCodeData/Task/Reverse-a-string/Clojure/reverse-a-string-1.clj

4 lines
112 B
Clojure
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(defn reverse-string [s]
"Returns a string with all characters in reverse"
(apply str (reduce conj '() s)))