-
-
Save swannodette/4151001 to your computer and use it in GitHub Desktop.
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
; 'in returns seq | |
; 'lte returns (reduce join seq) | |
; 'in? filters by pattern | |
; 'lte? tests value by lattice ordering | |
; 'is? matches by pattern (non-monotonic) | |
; path membership | |
(d/deduct in :path [a c] | |
in? :edge [?a ?b] | |
in? :path [?b ?c]) | |
; voting | |
(d/deduct lte :finished true | |
is? :votes #(> (count %) threshold)) | |
; nosql | |
(d/deduct in :store [key (->Causal vc val)] | |
in? :puts {:key ?key :vc ?vc :val ?val}) | |
(d/deduct lte :vc vc | |
in? :puts {:vc ?vc}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment