malli

https://github.com/metosin/malli :malli:
rutledgepaulv 2020-12-14T01:11:01.208300Z

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

rutledgepaulv 2020-12-14T01:11:21.208600Z

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

rutledgepaulv 2020-12-14T01:12:20.209100Z

am i missing something? i'm sure map entries are some of the clunkier things to deal with

rutledgepaulv 2020-12-14T01:13:58.209600Z

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.