Skip to content

Instantly share code, notes, and snippets.

@Rovanion
Created May 3, 2017 15:09
Show Gist options
  • Save Rovanion/c689c5ae18ff3cdc92537665db9f7c23 to your computer and use it in GitHub Desktop.
Save Rovanion/c689c5ae18ff3cdc92537665db9f7c23 to your computer and use it in GitHub Desktop.
Useful function specs for Clojure Spec
(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