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.