Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 479 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 479 Bytes

spec-keys

A small library that parses a Spec form and returns a set of keys used.

Install

[compute/spec-keys "0.1.2"]

Usage

(require '[clojure.spec.alpha :as s])
(require '[compute.spec-keys.core :as sk])

(s/def ::a int?)
(s/def ::map (s/keys :req [::a]))

(sk/parse-spec-keys ::map)
=> #{::a}

License

Copyright © 2018 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.