DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
johncip profile image
jmc

Clojure:

(defn trim [s]
  (apply str (drop-last (rest s))))
Enter fullscreen mode Exit fullscreen mode