Skip to content

Instantly share code, notes, and snippets.

@stuarthalloway
Created March 5, 2015 20:15
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 stuarthalloway/5dbe002229d1f29f8259 to your computer and use it in GitHub Desktop.
Save stuarthalloway/5dbe002229d1f29f8259 to your computer and use it in GitHub Desktop.
Interactive Development of a Function Used in Query
(def zap (partial + 1))
(d/q '[:find ?b
:in ?a
:where [(user/zap ?a) ?b]]
1)
;; #{[2]}
(def zap (partial + 2))
(d/q '[:find ?b
:in ?a
:where [(user/zap ?a) ?b]]
1)
;; #{[3]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment