Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created May 20, 2017 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/b4ed7299f3b5df4ffe75825c3cb6ef47 to your computer and use it in GitHub Desktop.
Save deque-blog/b4ed7299f3b5df4ffe75825c3cb6ef47 to your computer and use it in GitHub Desktop.
(defmacro binary-tree-of
[pred]
`(s/and
#(every? (partial s/valid? ~pred) (dfs-binary-tree %))
::binary-tree-impl))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment