This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-14
Channels
- # adventofcode (42)
- # babashka (37)
- # beginners (62)
- # cider (13)
- # clj-kondo (12)
- # cljdoc (1)
- # clojure (80)
- # clojure-australia (2)
- # clojure-dev (43)
- # clojure-europe (69)
- # clojure-italy (8)
- # clojure-nl (10)
- # clojure-switzerland (130)
- # clojure-uk (12)
- # clojurescript (23)
- # code-reviews (8)
- # cryogen (5)
- # cursive (6)
- # datomic (3)
- # duct (4)
- # emacs (12)
- # fulcro (60)
- # kaocha (7)
- # lambdaisland (4)
- # malli (4)
- # meander (1)
- # nrepl (31)
- # off-topic (2)
- # re-frame (16)
- # rewrite-clj (5)
- # shadow-cljs (11)
- # spacemacs (7)
- # xtdb (1)
I am a little confused by map entries in malli. I see that i can use malli.core/entries
to get k/v tuples where the v is a reified :malli.core/val
schema that contains the entry's properties, but i sort of expected the map entry itself to also be a reified schema node that I could interrogate properties from. For now I am listing all entries and seeking to find the one that matches my key since malli.util/get
returns the value not wrapped in a :malli.core/val
and so is missing entry properties
It might be nice if malli.util contained a "find" like "clojure.core/find" for getting a map entry given a key in constant time
am i missing something? i'm sure map entries are some of the clunkier things to deal with
Maybe what i am missing is that my property is really about the "value" and not about the map entry and so i put it in the wrong place.