Skip to content

Instantly share code, notes, and snippets.

@Deraen
Created January 12, 2015 16:46
Show Gist options
  • Select an option

  • Save Deraen/dfd4b85de4cc14ebc93e to your computer and use it in GitHub Desktop.

Select an option

Save Deraen/dfd4b85de4cc14ebc93e to your computer and use it in GitHub Desktop.
Random Clj notes
; Quoting symbols in collection before passing them to eval so that they are quoted when evaluated
(let [test #{'a 'b 'c}] `(println ~@(map #(eval `''~%) test)))
; => (clojure.core/println (quote a) (quote c) (quote b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment