This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-26
Channels
- # announcements (5)
- # architecture (79)
- # babashka (48)
- # beginners (148)
- # calva (57)
- # cider (31)
- # clara (2)
- # clj-kondo (4)
- # cljs-dev (6)
- # cljsrn (1)
- # clojure (10)
- # clojure-australia (4)
- # clojure-dev (5)
- # clojure-europe (13)
- # clojure-france (1)
- # clojure-nl (6)
- # clojure-provo (4)
- # clojure-uk (51)
- # clojurescript (38)
- # conjure (20)
- # core-logic (18)
- # cursive (28)
- # datomic (12)
- # duct (2)
- # emacs (16)
- # figwheel-main (3)
- # fulcro (43)
- # honeysql (17)
- # hoplon (3)
- # jobs (1)
- # meander (4)
- # mount (5)
- # off-topic (32)
- # pathom (6)
- # pedestal (5)
- # re-frame (1)
- # reagent (2)
- # reveal (8)
- # shadow-cljs (209)
- # spacemacs (5)
- # tools-deps (37)
- # xtdb (18)
Hi! I have a map with a key that is a 6 elements vector. The difference between the keys is that they must differ in the first two elements of the vector. I tried this to match :
{[?eid1 ?eid2 ?eid3 ?eid4 ?eid5 ?eid6] ?val1,
[(me/not ?eid1) (me/not ?eid2) ?eid3 ?eid4 ?eid5 ?eid6] ?val2}
but getting a map patterns may not contain variables in their keys that would make it so there is more than one match possible.
How could I expresse this?@nlessa The error happens when you use match
so you’ll want to switch to find
. match
doesn’t allow for ambiguity and a map with a variable key is ambiguous thus the message.
💯 3