An open API service indexing awesome lists of open source software.

https://github.com/usernolan/fm

Concise syntax for embedding validation within functions
https://github.com/usernolan/fm

clojure clojurescript generative-specification property-testing

Last synced: 4 months ago
JSON representation

Concise syntax for embedding validation within functions

Awesome Lists containing this project

README

          

# fm

```clojure
(s/def ::a int?)
(s/def ::b int?)

(fm/defn add [::a ::b]
(+ a b))
```

#

`fm` provides syntax for specifying runtime invariants via
[`clojure.spec`](https://github.com/clojure/spec.alpha/)