Skip to content

Instantly share code, notes, and snippets.

@deque-blog

deque-blog/no-swallow.clj

Last active May 8, 2017
Embed
What would you like to do?
(defn no-swallow
"Returns `nil` whatever the argument"
[code]
nil)
(no-swallow (println "Hello world"))
"Hello world" ;; Side effect of evaluating the argument
=> nil ;; Output of no-swallow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment