Skip to content

Instantly share code, notes, and snippets.

@luxbock

luxbock/sss.clj Secret

Created January 10, 2017 10:20
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 luxbock/261a40e83816d8a428cd991e50c7f2a7 to your computer and use it in GitHub Desktop.
Save luxbock/261a40e83816d8a428cd991e50c7f2a7 to your computer and use it in GitHub Desktop.
sss
(s/def ::foo (comp #(do (println "checking foo!" %) (string? %))))
(s/def ::bar int?)
(s/def ::foobar (s/keys :req [::bar]))
(def foomap {::bar 123 ::foo "hello!"})
(s/valid? ::foobar foomap)
;; checking foo!
;; => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment