You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last arg could be a function of key->xform in this example.
Not sure if there is already an idiomatic way to do this using the library? If not, would you consider including this functionality in some way? Or, alternatively, would you consider situations like this a code smell?
The text was updated successfully, but these errors were encountered:
imrekoszo
changed the title
by-key with multiple transducers?
x/by-key with multiple transducers?
Dec 6, 2023
Hey Christophe,
I ran into situations a few times when I wanted to use
x/by-key
but run different transducers on values belonging to different keys.Example:
but imagine we want the sum of odd numbers but the product of evens.
Something like this for example:
The last arg could be a function of
key->xform
in this example.Not sure if there is already an idiomatic way to do this using the library? If not, would you consider including this functionality in some way? Or, alternatively, would you consider situations like this a code smell?
The text was updated successfully, but these errors were encountered: