Created
May 3, 2017 15:09
-
-
Save Rovanion/c689c5ae18ff3cdc92537665db9f7c23 to your computer and use it in GitHub Desktop.
Useful function specs for 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
(spec/fdef ::predicate | |
:args (spec/cat :arg any?) | |
:ret boolean?) | |
(spec/fdef ::nullary-fn | |
:args (spec/cat) | |
:ret any?) | |
(spec/fdef ::unary-fn | |
:args (spec/cat :first any?) | |
:ret any?) | |
(spec/fdef ::binary-fn | |
:args (spec/cat :first any? :second any?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment