Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defprotocol IFoo
(foo [this x])
(bar [this x y]))
(deftype Foo [avec]
IFoo
(foo [this x] (.Foo (conj avec x)))
(bar [this x y]
(let [newfoo (foo this x)]
(.Foo (conj (.avec newfoo) y)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.