Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defprotocol IFoo
(foo [this x])
(bar [this x y]))
(deftype Foo [avec]
(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.