Skip to content

Instantly share code, notes, and snippets.

@pbostrom
Created February 21, 2014 17:06
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 pbostrom/9138456 to your computer and use it in GitHub Desktop.
Save pbostrom/9138456 to your computer and use it in GitHub Desktop.
(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