Created
March 5, 2015 20:15
-
-
Save stuarthalloway/5dbe002229d1f29f8259 to your computer and use it in GitHub Desktop.
Interactive Development of a Function Used in Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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