-
-
Save luxbock/261a40e83816d8a428cd991e50c7f2a7 to your computer and use it in GitHub Desktop.
sss
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 ::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