This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-05
Channels
- # announcements (17)
- # aws (1)
- # babashka (68)
- # beginners (88)
- # calva (85)
- # chlorine-clover (10)
- # cider (5)
- # cljsrn (4)
- # clojure (99)
- # clojure-android (1)
- # clojure-denmark (1)
- # clojure-europe (15)
- # clojure-italy (5)
- # clojure-nl (3)
- # clojure-spec (1)
- # clojure-uk (67)
- # clojurescript (44)
- # core-async (44)
- # cryogen (4)
- # cursive (22)
- # data-science (2)
- # datascript (10)
- # datomic (29)
- # duct (11)
- # editors (2)
- # emacs (2)
- # events (1)
- # fulcro (28)
- # ghostwheel (7)
- # graalvm (8)
- # instaparse (6)
- # java (34)
- # jobs (9)
- # jobs-discuss (71)
- # juxt (12)
- # luminus (3)
- # malli (15)
- # meander (9)
- # nrepl (4)
- # off-topic (44)
- # pathom (13)
- # reagent (22)
- # schema (1)
- # shadow-cljs (39)
- # spacemacs (2)
- # test-check (1)
- # tree-sitter (5)
- # xtdb (5)
- # yada (1)
((s/rewrite
(m/with [%resource {:methods (m/seqable [_ !methods] ...)
:resources (m/seqable [_ %resource] ...)}]
%resource)
;;>
~!methods)
{:methods {:c "z"}
:resources {:methods {:a "method1"}
:resources {:methods {:b "method2"}}}})
=> ["z" "method2"]
doesn’t seem quite right?
I expected “method1” to get collected.
(m/rewrite
{:m {1 2}
:r {:m {3 4}
:r {:m {5 6}
:r {:m {7 8}
:r {:m {9 10}}}}}}
(m/with [%r {:m !m
:r (m/seqable [_ %r] ...)}]
%r)
;;>
~!m)
=> [{1 2} nil {5 6} nil {9 10}]
what in the world?
I left a comment on the issue you made.https://github.com/noprompt/meander/issues/115#issuecomment-595273451
Thank you 🙂 Hahaha I can’t believe I messed that up but thanks for setting me right 🙂
(r/pipe !begin-time (format-time "hhmm"))
I just tried this but it doesn’t seem to work.
(m/app (format-time "hhmm") !begin-time)
This is what I have at the moment. Using a HOF
pipe
doesn't do what you are thinking it does here. app
would I think be the right answer.