Skip to content

Instantly share code, notes, and snippets.

@mpenet
Created November 18, 2012 11:24
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 mpenet/4104635 to your computer and use it in GitHub Desktop.
Save mpenet/4104635 to your computer and use it in GitHub Desktop.
(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