-
-
Save jrheard/ad1027a4b2f8fcdef54c to your computer and use it in GitHub Desktop.
matche'd 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] | |
([_ [?node . ?remaining-nodes] _] | |
(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