Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivermac/cba9baae7b80550f1261afd6bdd188e5 to your computer and use it in GitHub Desktop.
Save ivermac/cba9baae7b80550f1261afd6bdd188e5 to your computer and use it in GitHub Desktop.
Resolve and Call symbol derived from a string
clj.user.main=> ((-> "clojure.string/blank?" symbol resolve) "")
true
clj.user.main=> ((-> "clojure.string/blank?" symbol resolve) "ivermac")
false

I used Clojure 1.8.0. The example above has been influenced by resolve clojure function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment