Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created February 24, 2017 23:25
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 amalloy/f9b707afdd03f4c5edaaa03a429bc430 to your computer and use it in GitHub Desktop.
Save amalloy/f9b707afdd03f4c5edaaa03a429bc430 to your computer and use it in GitHub Desktop.
(let [inputs [1 :q "boo" (Object.)]]
(apply min-key count
(for [n (all-ns)
[k v] (ns-publics n)
:when (try
(= inputs (map v inputs))
(catch Throwable t
false))]
(name k))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment