This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-22
Channels
- # announcements (8)
- # architecture (1)
- # beginners (49)
- # calva (7)
- # cljdoc (7)
- # cljs-dev (4)
- # clojure (44)
- # clojure-italy (1)
- # clojure-spec (12)
- # clojurescript (88)
- # community-development (2)
- # cursive (8)
- # datomic (16)
- # fulcro (15)
- # immutant (3)
- # joker (10)
- # keechma (4)
- # lambdaisland (1)
- # luminus (7)
- # pathom (1)
- # qa (2)
- # re-frame (11)
- # reitit (8)
- # remote-jobs (1)
- # rewrite-clj (10)
- # shadow-cljs (1)
- # slack-help (2)
- # sql (1)
- # tools-deps (2)
- # vim (4)
- # xtdb (3)
i have this spec : (s/cat :tag ...... :children (s/* ::child)
I have a special case where i want a single child, but i still want it to be conformed as a list of one item.... how would i express this ?
i have the dispatching ok,, been using conformer and it works, but it swallows the explaining of errors down the tree
s/+
— one or more.
Maybe wrapped in s/and
to check the count
is 1?
Not sure how s/and
combines with the sequence regex stuff tho’… I’d have to experiment.
i'm really trying to use spec as a parser for sexp, but it's not actually one, i guess the limitations are due to the gen part