Create a gist now

Instantly share code, notes, and snippets.

(defprotocol PFoo
(foo [x]))
(extend-protocol PFoo
Keyword
(foo [x]
"Keyword")
js/Object
(foo [x]
"js/Object"))
(foo :meh)
>> "js/Object"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment