This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-16
Channels
- # announcements (1)
- # babashka (13)
- # beginners (33)
- # calva (26)
- # cherry (33)
- # clerk (5)
- # clj-kondo (3)
- # clojure (40)
- # clojure-europe (24)
- # clojure-finland (2)
- # clojure-norway (29)
- # clojurescript (18)
- # cursive (2)
- # datomic (6)
- # docker (11)
- # emacs (12)
- # events (1)
- # fulcro (71)
- # graalvm (8)
- # hyperfiddle (2)
- # lsp (23)
- # meander (5)
- # off-topic (36)
- # polylith (4)
- # re-frame (6)
- # reitit (13)
- # shadow-cljs (87)
- # spacemacs (1)
- # tools-deps (19)
- # vim (5)
- # xtdb (57)
Can anyone help me with meander? Imagine I want the first form to become the second:
{:tags [{:name "AAA"} {:name "BBB"}]}
->
{:tags ["AAA" "BBB"]}
here is what I have in my code:
(matcher
{:pattern '{:tags [{:name ?tag} ...]}
:expression '{:tags [!tags]}})
But sometimes, I'm getting an exception saying "Non-exhaustive pattern match" or somethingLet me correct myself:
:tags [{:name !tags} ...]
:tags !tags
Sometimes, it leads to => ExceptionInfo: non exhaustive pattern match {}