I have a `get-summary` function that builds stats and returns them as a web service. Under the hood, it calls quite a few map, group-by, filter, etc. functions.
I’m experimenting with transducers, and `sequence xform` does the trick most of the time. But I want to understand `eduction` use cases. In most cases, `eduction` seems to be a drop-in replacement. But in a few cases, I’m seeing this error: JsonGenerationException Cannot JSON encode object of class: class clojure.core.Eduction: clojure.core.Eduction@31accd87 cheshire.generate/generate (generate.clj:152) So there’s something I’m missing about my understanding of `sequence` versus `eduction`. Can someone shine some light on it? Thanks! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
