Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thiagocarvp opened this issue May 21, 2024 · 0 comments
Open

Comments

@thiagocarvp
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant