Created
December 16, 2019 21:09
-
-
Save eraserhd/6869f014414ab605efeb4a47410ca214 to your computer and use it in GitHub Desktop.
m/find and m/search
This file contains hidden or 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
twou.centralpark.server.database.migrations-test=> (m/find prod-snapshot {?p {:program/uuid (m/pred some?)} & (m/not {_ {:program-of-study/program (?p)}})} ?p) | |
17592186059725 | |
twou.centralpark.server.database.migrations-test=> (m/search prod-snapshot {?p {:program/uuid (m/pred some?)} & (m/not {_ {:program-of-study/program (?p)}})} ?p) | |
() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
m/find
should return nil here, best as I can understand:The first part matches:
The second part does not:
The value available inside
&
is...The negand, substituting the bound value, matches:
It's negation, substituting the bound value, fails to match.
So the best answer I can think up that would make the behavior correct is if
&
isn't required to match underm/find
. But that doesn't seem to be true: