Created
February 21, 2014 17:06
-
-
Save pbostrom/9138456 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns foo) | |
(defprotocol Foo | |
(alpha [this a]) | |
(beta [this a])) | |
(ns bar | |
(:require [foo :as f])) | |
(defrecord Bar [] | |
f/Foo | |
(alpha [_ a] | |
(inc a)) | |
(beta [this a] | |
(inc (f/alpha this a)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment