This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-09
Channels
- # announcements (7)
- # beginners (84)
- # calva (3)
- # cljs-dev (19)
- # cljsrn (1)
- # clojure (64)
- # clojure-dev (31)
- # clojure-italy (13)
- # clojure-nl (6)
- # clojure-spec (4)
- # clojure-uk (35)
- # clojurescript (4)
- # clojurex (86)
- # datomic (4)
- # fulcro (11)
- # graalvm (93)
- # joker (5)
- # nrepl (32)
- # off-topic (45)
- # pedestal (4)
- # reagent (3)
- # rewrite-clj (12)
- # sql (17)
- # tools-deps (4)
- # vim (28)
I made a thing to capture one side of that constraint as part of a toolkit for generating test-data to match a SQL schema....
(defn string-up-to [max-len]
(s/with-gen string?
#(gen/fmap (fn [x] (apply str x))
(gen/bind (s/gen (s/int-in 0 max-len))
(fn [size]
(gen/vector (gen/char-alpha) size))))))
no, not currently