Skip to content

Instantly share code, notes, and snippets.

@johnwalker
Created December 27, 2013 19:27
Show Gist options
  • Save johnwalker/8151474 to your computer and use it in GitHub Desktop.
Save johnwalker/8151474 to your computer and use it in GitHub Desktop.
(ns doesthisactuallywork)
(defprotocol foobar
(foo [x y])
(bar [{x :x} {y :y z :z}] [x y z]))
(defrecord foobarrec [a]
foobar
(foo [x {y :y z :z}] [(:a x) y z])
(bar [{x :a} {y :y z :z}] [x y z]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment