This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-22
Channels
- # announcements (2)
- # aws (5)
- # babashka (17)
- # beginners (108)
- # calva (28)
- # chlorine-clover (7)
- # clj-kondo (14)
- # cljs-dev (9)
- # cljsrn (2)
- # clojure (118)
- # clojure-europe (50)
- # clojure-finland (5)
- # clojure-france (15)
- # clojure-italy (9)
- # clojure-nl (14)
- # clojure-spec (11)
- # clojure-uk (43)
- # clojuredesign-podcast (1)
- # clojurescript (35)
- # clojutre (2)
- # clr (3)
- # community-development (6)
- # conjure (9)
- # core-async (41)
- # cursive (7)
- # data-science (7)
- # datomic (11)
- # events (1)
- # figwheel-main (4)
- # fulcro (20)
- # ghostwheel (9)
- # graalvm (18)
- # helix (46)
- # leiningen (14)
- # observability (2)
- # off-topic (23)
- # pathom (4)
- # re-frame (5)
- # reitit (5)
- # rum (2)
- # shadow-cljs (32)
- # spacemacs (8)
- # specter (5)
- # sql (36)
- # timbre (3)
- # vim (15)
- # xtdb (2)
- # yada (2)
@hindol.adhya I managed to dig up my changes to ghostwheel.core. this adds the <<
operator for generators, so you could do this:
(>defn path?
[p]
[any? => boolean?
<< (gen/fmap #(path %) (gen/string))]
(instance? Path p))
I called the concept gen-args
, so if you're curious what's going on underneath, just search the code for it 🙂
is this something you'd like a pull request for @clojurians.net? no idea if it's something you want in ghostwheel
This looks good at first sight, but I wanna give it some more thought and also regarding the syntax. If you already have the code working and it's just a matter of hitting the Create PR button – please do, we can discuss it further on GitHub, so I don't have to keep track of it elsewhere.