Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defmacro binary-tree-of
[pred]
`(s/and
#(s/valid? ::binary-tree-impl %)
#(every? (partial s/valid? ~pred) (dfs-binary-tree %))
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment