Skip to content

Instantly share code, notes, and snippets.

@jehrhardt
Last active October 29, 2016 07:10
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 jehrhardt/88bb7d2c863a75d0a9e7681abb0f8502 to your computer and use it in GitHub Desktop.
Save jehrhardt/88bb7d2c863a75d0a9e7681abb0f8502 to your computer and use it in GitHub Desktop.
simple clojure spec
(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