Skip to content

Instantly share code, notes, and snippets.

@axurright
Created November 17, 2024 16:09
Show Gist options
  • Select an option

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

Select an option

Save axurright/b43a880414190feab88f20f2ed0b82b1 to your computer and use it in GitHub Desktop.
Some random functions I dumped in here.
;; 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