I'm trying to use the xform argument on the proto-map->clj-map function to handle proto-maps that have fields using one-of.
However, the xform is being applied after the default mapper, so it cannot access the proto-map. Is this order supposed to be this way?
|
xform (comp mapper xform)] |
If the xform is meant to be the first transducer, it should be:
Reference from Clojure docs: https://clojure.org/reference/transducers#_defining_transformations_with_transducers
I'm trying to use the
xformargument on theproto-map->clj-mapfunction to handle proto-maps that have fields usingone-of.However, the
xformis being applied after the default mapper, so it cannot access the proto-map. Is this order supposed to be this way?pronto/src/clj/pronto/core.clj
Line 122 in df3f76f
If the
xformis meant to be the first transducer, it should be:(comp xform mapper)Reference from Clojure docs: https://clojure.org/reference/transducers#_defining_transformations_with_transducers