Skip to content

Instantly share code, notes, and snippets.

@joshuakfarrar
Last active November 6, 2015 17:41
Show Gist options
  • Save joshuakfarrar/5e75f4b480feab57e65c to your computer and use it in GitHub Desktop.
Save joshuakfarrar/5e75f4b480feab57e65c to your computer and use it in GitHub Desktop.
(require '[clojure.string :as s])
(defn palindrome
[text]
(= (s/reverse text) text))
user=> (palindrome "foo")
false
user=> (palindrome "lol")
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment