Created
July 3, 2016 10:39
-
-
Save missingfaktor/2e2f38c328be4656e746be1e2b075d01 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (defn find [seq' pred] | |
| (match seq' | |
| (:seq [(:and x [(!pred pred)]) & :_]) x | |
| (:seq [:_ & rest]) (find rest pred) | |
| (:seq []) nil)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment