Last active
October 29, 2016 07:10
-
-
Save jehrhardt/88bb7d2c863a75d0a9e7681abb0f8502 to your computer and use it in GitHub Desktop.
simple clojure spec
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
(s/def ::bar (s/and int? even? #(> % 1000))) | |
(s/def ::foo (s/keys :req [::bar])) | |
(s/valid? ::foo {:bar 10000}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment