<commit_before>(ns reverse-string)
(require '[clojure.string :as str])

(defn- reverse-string-as-sequence [sequence reverse-string]
  (loop [seq sequence rs reverse-string]
    (if (empty? seq)
      rs
      (recur (rest seq) (str (first seq) rs)))
    )
  )

(defn reverse-string [s] 
  (reverse-string-as-sequence (str/split s #"") "")
)<commit_msg>A refactored version of reverse-string of exercism in the track Clojure following the comments of a mentor<commit_after>(ns reverse-string)
(require '[clojure.string :as str])

(defn reverse-string [s]
  (loop [char-seq (seq s) rs ""]
    (if (empty? char-seq)
      rs
      (recur (rest char-seq) (str (first char-seq) rs)))
    )
  )
{'fraction_non_alphanumeric': 0.14825581395348839, 'fraction_numerical': 0.0, 'mean_word_length': 3.445161290322581, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4819382', 'n_tokens_mistral': 244, 'n_tokens_neox': 238, 'n_words': 73}