Last active
November 11, 2024 14:59
-
-
Save axurright/0e0a55bef4cee49af8601c47cfe2789a to your computer and use it in GitHub Desktop.
Some Clojure functions for me to practice.
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 sum and print some line. | |
| (defn sum-print [message] | |
| (str message (+ 6 12))) | |
| (sum-print "I love Lisp and its Dialects") | |
| ;; A function that will print a normal text and a reverse version | |
| (defn normal-reverse [text] | |
| (str "Your text: " text) | |
| (str "Reverse text: " (reverse text))) | |
| (normal-reverse "The quick brown fox jumps over the lazy dog") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment