Skip to content

Instantly share code, notes, and snippets.

@axurright
Last active November 11, 2024 14:59
Show Gist options
  • Select an option

  • Save axurright/0e0a55bef4cee49af8601c47cfe2789a to your computer and use it in GitHub Desktop.

Select an option

Save axurright/0e0a55bef4cee49af8601c47cfe2789a to your computer and use it in GitHub Desktop.
Some Clojure functions for me to practice.
;; 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