This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-11
Channels
- # announcements (38)
- # babashka (5)
- # beginners (26)
- # calva (26)
- # cider (1)
- # clj-kondo (36)
- # cljdoc (17)
- # cljs-dev (31)
- # clojure (39)
- # clojure-australia (9)
- # clojure-berlin (2)
- # clojure-dev (31)
- # clojure-europe (22)
- # clojure-france (3)
- # clojure-italy (7)
- # clojure-nl (5)
- # clojure-norway (5)
- # clojure-spec (28)
- # clojure-uk (9)
- # clojured (20)
- # clojurescript (24)
- # community-development (2)
- # conjure (32)
- # core-async (7)
- # cryogen (6)
- # datomic (2)
- # duct (6)
- # fulcro (6)
- # graalvm (53)
- # introduce-yourself (2)
- # jobs (2)
- # luminus (2)
- # nrepl (2)
- # off-topic (35)
- # re-frame (17)
- # reveal (8)
- # shadow-cljs (27)
- # testing (2)
- # xtdb (8)
what is that even supposed to mean?
seems like it's doing exactly what the docstring says to me
I don't know what that's supposed to mean, I'm trying to build a tool on top of spec and I have to support what it supports
I'll probably ignore this particular thing... I just was trying to understand what kind of data shapes various variations of s/every
support.
less surprising:
(s/valid? (s/every-kv keyword? int?) #{[:a 1]})
=> true
every-kv
docstring states it works on associative collections...It's a reveal plugin that builds a UI form for a given spec. Then you can fill the form to get back the data in the shape that satisfies the spec.
More than that. You can bind changes in form to custom code and custom views. For example, if you have spec for vega/vega-lite data format, you can have a UI form for creating vega chart input and a vega chart itself that updates on changes to the form. This allows learning and experimenting with data-driven APIs interactively
every-kv is really about "seqs to map entries", but we have no way to say that in Clojure (yet)
Rich and I have been talking about that gap for years, some day we'll figure it out :)
pair is commonly used though :)
the "seqs to" part is the hard part :)
I think that may be vestigial from earlier impls