Last active
November 10, 2024 19:35
-
-
Save axurright/5a200d288e826b8a83ed23a5f3477867 to your computer and use it in GitHub Desktop.
A couple of Clojure functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; 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