Skip to content

Instantly share code, notes, and snippets.

@spacepluk
Last active August 29, 2015 14:24
Show Gist options
  • Save spacepluk/859a2d13bcfa1248df92 to your computer and use it in GitHub Desktop.
Save spacepluk/859a2d13bcfa1248df92 to your computer and use it in GitHub Desktop.
(defprotocol ITest (test [x] [x y]))
(defrecord Fails []
ITest
(test
([x] (str x))
([x y] (str x y))))
(defrecord Works []
ITest
(test [x] (str x))
(test [x y] (str x y)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment