Created
December 14, 2014 23:08
-
-
Save laser/a317f833ad3c953d6101 to your computer and use it in GitHub Desktop.
Composing validators with err->>
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 validate-note | |
"Ensure that the provided note is valid." | |
[note] | |
(err->> note | |
ensure-text-presence | |
ensure-text-length)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment