Skip to content

Instantly share code, notes, and snippets.

@axurright
Last active November 10, 2024 19:35
Show Gist options
  • Select an option

  • Save axurright/5a200d288e826b8a83ed23a5f3477867 to your computer and use it in GitHub Desktop.

Select an option

Save axurright/5a200d288e826b8a83ed23a5f3477867 to your computer and use it in GitHub Desktop.
A couple of Clojure functions
;; A function that will tell you nice things for some reason
(defn nice [nice_word]
(str "You are " nice_word))
(nice "intelligent")
;; A function that will tell you your country
(defn country [country]
(str "Your country: " country))
(country "Costa Rica")
;; That's my country btw (u already know)
;; A function that will reverse your text
(defn reverse-in [input]
(str "Your reverse text: " (reverse input)))
(reverse-in "I'm driving yay")
;; That's it dudes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment