Skip to content

xform is being applied after the default mapper on proto-map->clj-map #35

@thiagocarvp

Description

@thiagocarvp

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:

(comp xform mapper)

Reference from Clojure docs: https://clojure.org/reference/transducers#_defining_transformations_with_transducers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions