Created
November 17, 2024 16:09
-
-
Save axurright/b43a880414190feab88f20f2ed0b82b1 to your computer and use it in GitHub Desktop.
Some random functions I dumped in here.
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 just print 2+2 with a random sentence | |
| (defn sum [message] | |
| (str message (+ 2 2)) | |
| (sum "2 + 2 is: ") | |
| ;; A function that will scare whoever called it. | |
| (defn scare [scary_text] | |
| (str "Hey you, " scary_text) | |
| (scare "boo.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment