Skip to content

Instantly share code, notes, and snippets.

@luxbock
Created October 5, 2016 19:07
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/532a19f75553ae938c0a998e3be47851 to your computer and use it in GitHub Desktop.
Save luxbock/532a19f75553ae938c0a998e3be47851 to your computer and use it in GitHub Desktop.
user> (s/def ::number int?)
:user/number
user> (s/def ::number-list (s/coll-of ::number :min-count 1))
:user/number-list
user> (s/fdef foobar
:args (s/cat)
:ret ::number-list)
user/foobar
user> (defn foobar [] [])
#'user/foobar
user> (stest/instrument `foobar)
[user/foobar]
user> (foobar)
[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment