-
-
Save jrheard/a0d103dbb4f64f51aecd to your computer and use it in GitHub Desktop.
buggy nodes-existo
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
(defne nodes-existo [condition nodes out] | |
([_ [] out]) | |
([_ [?node . ?remaining-nodes] out] | |
(conde | |
[(condition ?node) (== ?node out)] | |
[(nodes-existo condition ?remaining-nodes out)] | |
[(matche [?node] | |
([[_ _ . ?children]] (nodes-existo condition ?children out)))]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment