Function definition specificationsλ︎
clojure.spec.alpha/fdef
defines a specification for a function definition, providing specific specification for
- arguments passed when calling a function
- return value expected
- relationships between arguments and return value
Examplesλ︎
The practicalli.database-access/new-account-holder
function takes a customer details specification and returns an account-holder-id
specification.