Created
April 3, 2018 01:41
-
-
Save bhb/6c0f4fdd2ef0930cc6043579ade39d68 to your computer and use it in GitHub Desktop.
fdef example
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
;; This is a valid ordering: | |
;; first spec, then function defintion | |
(s/fdef my-add | |
:args (s/cat :x int? :y int?)) | |
(defn my-add [x y] | |
(+ x y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment