((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"]
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 🙂
doesn’t seem quite right?
I expected “method1” to get collected.
Anything you can share as an example? Sounds interesting 🙂
(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?
(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.