Liking cljdoc? Tell your friends :D

spec-keys

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

Install

[compute/spec-keys "0.1.0"]

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.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close