-
-
Save AeroNotix/83e1e4d88f8d96e46ad2 to your computer and use it in GitHub Desktop.
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
(let [needle '[a b] | |
haystack '[[a b] a] | |
found? (atom false)] | |
(clojure.walk/walk #(when (= %1 needle) (reset! found? true)) | |
identity haystack) | |
found?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment