Created
November 28, 2012 23:58
-
-
Save swannodette/4165678 to your computer and use it in GitHub Desktop.
not-pathc.clj
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
(defc not-pathc [x path] | |
(= (get-in x path ::not-found) ::not-found)) | |
(run* [q] | |
(fresh [x] | |
(== {:a {:b x}} q) | |
(not-pathc x [:a :b]))) | |
;; => (({:a {:b _.0}} :- (not-pathc (_.0 [:a :b])))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@swannodette Thanks! this helped -- I found I had an error in my lvars.
not-pathc
viadefc
seems to be working well :)