Skip to content

Instantly share code, notes, and snippets.

@ageldama
Created January 12, 2013 06:50
Show Gist options
  • Select an option

  • Save ageldama/4516481 to your computer and use it in GitHub Desktop.

Select an option

Save ageldama/4516481 to your computer and use it in GitHub Desktop.
(defprotocol Foo
(blah
[this x]
[this x y]))
(def r (reify Foo
(blah [_ x] x)
(blah [_ x y] y)))
(blah r 1) ;; => 1
(blah r 1 2) ;; => 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment