This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-12
Channels
- # babashka (37)
- # beginners (27)
- # biff (1)
- # calva (18)
- # cider (45)
- # clj-on-windows (5)
- # cljsrn (1)
- # clojure (90)
- # clojure-art (3)
- # clojure-uk (1)
- # clojurescript (7)
- # core-logic (4)
- # datomic (4)
- # events (2)
- # fulcro (3)
- # hyperfiddle (23)
- # leiningen (66)
- # malli (1)
- # meander (7)
- # nrepl (1)
- # off-topic (9)
- # pathom (1)
- # re-frame (15)
- # reitit (19)
- # remote-jobs (1)
- # shadow-cljs (103)
Is there an option for meander to keep keys that are not specified in the pattern?
then how would i use ?rest in the output expression?
I did something like this and it works but is there a better way?
(meander/match props
{:color-scheme ?color-scheme & ?rest}
(merge {:color ?color-scheme}
?rest))
With match that works. With m/rewrite you could get rid of the merge and should be able to just write {:color ?color-scheme & ?rest }
for the output.
I see, thanks that works great!